Lesson 7: yarn hardhat deploy --tags mocks -> returns error [SOLVED] #230
-
returns
after running line
Checked my code several times but all seems identical to video lesson. Help plz! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Can you show us the solidity code? Also, try to delete the cache and the artifacts and try to compile again |
Beta Was this translation helpful? Give feedback.
-
@Magofoco Below is the solidity code for 00-deploy.mocks.js
helper-hardhat-config.js
|
Beta Was this translation helpful? Give feedback.
-
@Magofoco Here is the MockV3Aggregator.sol code
I tried adding MockV3Aggregator to helper-hardhat-config.js and import it that way into deploy-mocks but it seems I may have made a mistake since it didn't work |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@Magofoco Solved it! Solution below. Thank you for the input, much appreciated! Solved by editing abi in the MockV3Aggregator.json file located in artefacts artefacts > tests > MockV3Aggregator > MockV3Aggregator.json
|
Beta Was this translation helpful? Give feedback.
@Magofoco Solved it! Solution below. Thank you for the input, much appreciated!
Solved by editing abi in the MockV3Aggregator.json file located in artefacts
artefacts > tests > MockV3Aggregator > MockV3Aggregator.json