Closed DsAtHuH closed 2 years ago
The issue is that hardhat-waffle
hardcodes its dependency with @nomiclabs/hardhat-ethers
hardhat-deploy-ethers
extends the types of @nomiclabs/hardhat-ethers
but because it implements extra feature that cannot be provided by hardhat itself, see : https://github.com/NomicFoundation/hardhat/issues/1040, it has to be a replacemant of it
and so you should NOT install both, but install only hardhat-deploy-ethers
But because of the hardcoded dependency in hardhat-waffle
you have to use an npm alias , see doc : https://github.com/wighawag/hardhat-deploy-ethers/#installation
Some users have some issue with their respective package manager though, see : https://github.com/wighawag/hardhat-deploy-ethers/issues/12
The best option is to push hardhat
team to fix this issue : https://github.com/NomicFoundation/hardhat/issues/1040
because once this is resolved, hardhat-deploy-ethers
can then be an extension to @nomiclabs/hardhat-ethers
and not a fork like it is now
I ll close this as this is actually related to hardhat-deploy-ethers, not hardhat-deploy itself and there is already an issue for it rhere : https://github.com/wighawag/hardhat-deploy-ethers/issues/12
Describe the bug
hardhat-deploy
does not seem to work together with@nomiclabs/hardhat-waffle
.Running
yarn hardhat test
from https://github.com/DsAtHuH/hardhat-deploy/tree/waffle currently results in the following error:The problem looks to be associated with installing the dependency
@nomiclabs/hardhat-waffle": "^2.0.3
. If you comment the line https://github.com/DsAtHuH/hardhat-deploy/blob/waffle/hardhat.config.js#L3 from hardhat.config.js, all the tests fromTest.test.js
pass, but not theWaffle.test.js
.To Reproduce Steps to reproduce the behavior: Issue the command
yarn hardhat test
from the branchwaffle
from the repository https://github.com/DsAtHuH/hardhat-deploy/tree/waffle.Expected behavior Pass all the tests specified in
Test.test.js
andWaffle.test.js
simultaneously.versions