Lesson 7 : Error: No Contract deployed with name FundMe #4992
-
I am getting the following error when I run the unit test
I have pushed my code to the following repo : https://github.com/Himanshukrabc/HardhatFundMe Here is my 00-deploy-mocks.js script
my 01-deploy-fund-me.js script
and finally the unit test script
I have read most of the discussions on similar issues but I cannot find the bug here. Any help wil be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
check and correct the name of the contract in your solidity file to be the same as the name of the file that conatins your contract. FundMe.sol (file) should be the same as |
Beta Was this translation helpful? Give feedback.
-
I have the same issue too because i forget to module.exports.tags = ["all", "fundme"] at end of 01-deploy-fund-me.js |
Beta Was this translation helpful? Give feedback.
-
change this >>
to this >>
|
Beta Was this translation helpful? Give feedback.
check and correct the name of the contract in your solidity file to be the same as the name of the file that conatins your contract.
FundMe.sol (file) should be the same as
contract FundMe{
......
.....
.....
.....
}