-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 27 replies
-
https://github.com/Atharv-02/hardhat-fundme-fcc-test.git I have gone all over stack overflow, stack exchange eth and even the discussions that take place on this forum but no solution seems to be working for me |
Beta Was this translation helpful? Give feedback.
-
try change fundMe = await ethers.getContract("FundMe", deployer);
mockV3Aggregator = await ethers.getContract("MockV3Aggregator", deployer); 2- require("@nomiclabs/hardhat-ethers"); 3- assert.equal(response, mockV3Aggregator.target); I think the issue with |
Beta Was this translation helpful? Give feedback.
-
https://github.com/satishnvrn/hardhat-fund-me-sat/blob/feature/test-fixes/test/unit/FundMe.test.ts |
Beta Was this translation helpful? Give feedback.
-
im still getting the error "could not decode...." what did you do for that...change the ether version or sth else |
Beta Was this translation helpful? Give feedback.
-
this problem maybe caused by the wrong deployed network.you should use '--network ' to specify the network you want to deploy when you deploying your smartcontract. For example, If you use hardhat network, must specify '--network localhost'. try it and hope you can get help from this. |
Beta Was this translation helpful? Give feedback.
https://github.com/satishnvrn/hardhat-fund-me-sat/blob/main/test/staging/FundMe.staging.test.ts