Replies: 6 comments
-
Hi did you solve the problem |
Beta Was this translation helpful? Give feedback.
-
Hey. Maybe you have already solved the problem. If you look in the v0.6. repo (node_modules/@chainlink/contracts/src/v0.6/tests), there is no MockV3Aggregator A solution is to use the one in v0.7. Import the v0.7 version instead: import "@chainlink/contracts/src/v0.7/tests/MockV3Aggregator.sol"; Chainlink appears to have changed the setup slightly in v0.8, but v0.7 works for me. Remember to update hardhat.config compiler information hope it helps. |
Beta Was this translation helpful? Give feedback.
-
It is because you are probably using chainlink v0.4.1, it does not have MockV3Aggregator in v0.8 contracts. You can upgrade chainlink to v0.4.2 and you will get MockV3Aggregator in v0.8. |
Beta Was this translation helpful? Give feedback.
-
Make sure that you're compiling your MockV3Aggregator.sol with a compatible solidity version. you could run Cheers |
Beta Was this translation helpful? Give feedback.
-
Checkout #5428 |
Beta Was this translation helpful? Give feedback.
-
In the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I checked both mocks and dynamicsvg deploy script, they are fine, mockv3aggregator file in contract name too is spelt correctly. But I keep getting an error that says
No deployment found for: MockV3Aggregator
.This is the name of the mockv3aggregator file:
MockV3Aggregator.sol
And this is the code snippet in mockv3aggregator file:
This is what
00-deploy-mocks.js
script looks like.This is what
03-deploy-dynamic-nft.js
script looks like:I also change this part
const EthUsdAggregator = await ethers.getContract("MockV3Aggregator");
to thisconst EthUsdAggregator = await get("MockV3Aggregator");
in03-deploy-dynamic-nft.js
, it still keep throwing same error.Thanks in advance for helping me.
Beta Was this translation helpful? Give feedback.
All reactions