Skip to content

Error: No deployment found for: MocksV3Aggregator #5428

Discussion options

You must be logged in to vote

@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 the MockV3Aggregator 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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@heyisrael0x
Comment options

Comment options

You must be logged in to vote
1 reply
@Bhavik-punmiya
Comment options

Answer selected by Bhavik-punmiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants