@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol showing file not found #295
-
@chainlink/contracts/src/v0.6/interfaces/AggregatorV2V3Interface.sol:7:59: TypeError: Interfaces cannot inherit. lesson 7, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I used // import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol"; // this link for compile now its compiling files but still curious about above question why it dosent compile? |
Beta Was this translation helpful? Give feedback.
-
I believe the proper imports are:
You gotta make sure you have chainlink added to package.JSON also, make sure you have a semicolon at the end of those statements BTW, your # 2 says AggregatorV2V3Interface, which doesn't look right with the v2v3 |
Beta Was this translation helpful? Give feedback.
-
Does your code look the same as what we have in the github repo? |
Beta Was this translation helpful? Give feedback.
-
I had the same issue since I put const config = {
solidity: {
compilers: [{ version: '0.8.8' }, { version: '0.6.6' }],
},
// ...rest of the configs
} |
Beta Was this translation helpful? Give feedback.
-
@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol showing file not found, Now chainlink only have v0.8 file, how can I get v0.6 file |
Beta Was this translation helpful? Give feedback.
I had the same issue since I put
0.6.0
as the added compiler version, whereas in the video it's0.6.6
. Make sure yourhardhat.config.js
looks like this: