-
I could deploy the hardhat-fund-me project successfully on local network. When I started the localhost server with 'yarn hardhat node', I get the following error. How do I pass the network address to the constructor? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I think I solved this a few days ago removing the 99 file from the deployment files. but not sure 100% |
Beta Was this translation helpful? Give feedback.
-
I solved this by copying the code for deploy-fund-me.js from GitHub. Now no error when I run 'yarn hardhat node' Now I am facing another issue. When I run the unit test script, I get following error The unit test is for the local network - right? Why am I getting this error? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
For some reason its not finding your contract named FundMe If your sure its not a typo in your code, after checking with the repo You could: Try deleting either manually by right clicking it and deleting it
I personally ran into a similar issue before, when I deployed a previous contract in the past with the same name, which threw the error "cant find artifact "contractName" I solved it by changing the contract name |
Beta Was this translation helpful? Give feedback.
-
Finally figured out the issue. I must have missed out in the video and it took me 2 days to solve the error. |
Beta Was this translation helpful? Give feedback.
Finally figured out the issue.
It's because of this missing statement in deploy-fund-me,js
module.exports.tags = ["all", "fundme"]
I must have missed out in the video and it took me 2 days to solve the error.