wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.17k stars 283 forks source link

Support for Ethers.js@v6.0.0 #542

Closed mgroovyank closed 2 months ago

mgroovyank commented 2 months ago

I was trying to use latest version of Hardhat(v2.22.3) with hardhat-ethers plugin. The hardhat-ethers plugin is compatible with latest version of ethers.js(v6.0.0). But when I tried to install hardhat-deploy plugin(v0.12.2) and hardhat-deploy-ethers plugin, I saw some errors.

image

It seems hardhat-deploy plugin is still not compatible with ethers.js(v6.0.0).

If my understanding is correct, when can we expect support for ethers.js@v6.0.0?

wighawag commented 2 months ago

what do you mean by hardhat-deploy do not support ethers.js v6 ? What error do you see ?

hardhat-deploy is agnostic to which lib you use and it do not expose any lib specific api and you can use any you like

mgroovyank commented 2 months ago

@wighawag Thank you for your reply.

Here is my package.json:

{
  "devDependencies": {
    "@chainlink/contracts": "^1.1.0",
    "@nomicfoundation/hardhat-toolbox": "^5.0.0",
    "hardhat": "^2.22.3",
    "hardhat-deploy": "^0.12.2"
  }
}

After the below command:

npm install --save-dev hardhat-deploy

Here is the error I get, when I try to proceed ahead with.

npm install --save-dev hardhat-deploy-ethers

image

hardhat-deploy is agnostic to which lib you use and it do not expose any lib specific api and you can use any you like

Is this the same in case of hardhat-deploy-ethers package as well?

wighawag commented 2 months ago

Is this the same in case of hardhat-deploy-ethers package as well?

No hardhat-deploy-ethers is here to use ethers with hardhat-deploy.

The error seems to indicate that hardhat-deploy-ethers expect an earlier version of hardhat-deploy

If this is case, please open an issue here instead : https://github.com/wighawag/hardhat-deploy-ethers

mgroovyank commented 2 months ago

Opened #37. Closing this one.