Closed jlgrieve closed 1 year ago
I think you are doing wrong here when you are passing the path in name parameter
await deploy( "@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol:MockV3Aggregator", { contract: "@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol:MockV3Aggregator", from: deployer, log: true, args: [DECIMALS, INITIAL_PRICE], } )
Try using below Code
await deploy( "MockV3Aggregator", { contract: "@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol:MockV3Aggregator", from: deployer, log: true, args: [DECIMALS, INITIAL_PRICE], } )
Ahh that worked. Thank you very much!
Hello Patrick & Code Camp team,
I've been searching through the repo issues and the internet for a few hours now but keep having errors using hardhat deploy and am not getting anywhere. At this point, I've copy/pasted word-for-word the "00-deploy-mocks.js", "01-deploy-fund-me.js, and "MockV3Aggregator.sol" files.
I'm running into the following error while performing "yarn hardhat deploy --tags mocks" and getting the following response.
I try the suggestion in the response above (replace "MockV3Aggregator" in the deploy command for one of the suggested options). Now my "00-deploy-mocks.js" code looks like this (changes in at deploy function):
And if I retry "yarn hardhat deploy --tags mocks", the correct console logs appear but with this is the new error:
When I do "yarn hardhat deploy" ( to include "01-deploy-fund-me.js) the error is:
Error: No deployment found for: MockV3Aggregator
So I appear to be doing something wrong with the MockV3Aggregator, but nothing I've tried so far works. Any ideas? Sorry for the long question. Just hoping I gave plenty of detail. Any help is appreciated. Thanks