Skip to content

Error: No deployment found for: MockV3Aggregator #2983

Answered by RoboCrypter
blaynejosh asked this question in Q&A
Discussion options

You must be logged in to vote

@blaynejosh : Change this line in your deploy script,

From this : const ethUsdAggregator = await deployments.get("MockV3Aggregator")

To this : const ethUsdAggregator = await ethers.getContract("MockV3Aggregator")

And also, Import ethers from hardhat on top!

And for testing run this command : yarn hardhat test

Let me know, If it resolves your issue!

If it didn't resolve your issue,

  • Then check your mocks script If you deployed your MockV3Aggregator contract correctly.
  • And also check, If you have MockV3Aggregator in your contracts/test folder!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@blaynejosh
Comment options

@blaynejosh
Comment options

@RoboCrypter
Comment options

@blaynejosh
Comment options

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