PatrickAlphaC / hardhat-fund-me-fcc

82 stars 184 forks source link

MockV3Aggregator not compiling #20

Closed gcedism closed 2 years ago

gcedism commented 2 years ago

When running MockV3Aggregator it gives the error :

@chainlink/contracts/src/v0.6/interfaces/AggregatorV2V3Interface.sol:7:38: TypeError: Interfaces cannot inherit. interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface

Solution found that you could import both AggregatorInterface and AggregatorV3Interface in the Mock file, but your file doesn't have it. Is there another solution ?

PatrickAlphaC commented 2 years ago

Hi! Could you please follow the guide here on asking questions in the course?

https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be

And can you ask this in the discussions of the larger repo? Thanks! https://github.com/smartcontractkit/full-blockchain-solidity-course-js/

BlunderThunder123 commented 11 months ago

I also had same error i fixed it by just increasing the compiler version from 0.6.0 to 0.6.6 in my Hardhat.config.js File