Error: No deployment found for: MocksV3Aggregator #5428
-
I am at 10:51:00 of these video trying to run "yarn hardhat deploy --tags fundme" and I am getting a error "Error: No deployment 01-deploy-fund-me
Error
MockV3Aggregator.sol
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try deploying the mocks |
Beta Was this translation helpful? Give feedback.
-
@Bhavik-punmiya You are using this command You should run only |
Beta Was this translation helpful? Give feedback.
@Bhavik-punmiya You are using this command
yarn hardhat deploy --tags fundme
which will only run the fundme deploy script, but because you are running this command on hardhat/localhost due to that your fundme deploy script will access the if block where it needed theMockV3Aggregator
contract in order to get the ethUsd price.You should run only
yarn hardhat deploy
command in order to run it on hardhat so it can automatically deploy the mocks in the mocks deploy script. Or if you are trying something else then let me know so I can provide you the path.