-
I am trying to run the command yarn hardhat deploy --tags mocks to test a mock for the local host. This is at about 10:49:26. I keep on getting getting this error after it detects the local network
along with a large list of files in node_modules. At this point in the video, under the file 00-deploy-mocks-js, Patrick puts;
but then in a subtitle it says to change the if statement to:
I have tried both methods and even copied the files from the repo and I am still getting the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 20 replies
-
Hey could you please share your 00-deploy-mocks.js full code |
Beta Was this translation helpful? Give feedback.
-
Try this: Is the name for contract MockV3Aggregator correct? Just in case there is a typo - also check if the import inside it is correct. And in hardhat config, replace it with this:
If nothing works - try cloning the repo. Cheers. |
Beta Was this translation helpful? Give feedback.
Try this:
Is the name for contract MockV3Aggregator correct? Just in case there is a typo - also check if the import inside it is correct.
And in hardhat config, replace it with this:
If nothing works - try cloning the repo. Cheers.