Lesson 7: Compiler Version Error -> 10:43.16 #226
-
After getting this error I modified the hardhat.config.js file as instructed on the video
But still getting the error, so I also modified the compiler version in solhint.js file
But still getting the error. I created a separate AggregatorV2V3Interface file in test folder, locally imported into MockV3Aggregator.sol & also declared solidity version ^0.8.12 for each of the files
There are no errors or warnings in the code but I still get the same error when trying to compile. I don't get why I seem to be the only person having this compiler issue. Any help is appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
AggregatorV3Interface import in fundme.sol & priceConverter.sol was causing the error so I had to create a new file in contracts and remove the ^ from the solidity version in hardhat.config & solhin.json. Now it compiles perfectly! |
Beta Was this translation helpful? Give feedback.
AggregatorV3Interface import in fundme.sol & priceConverter.sol was causing the error so I had to create a new file in contracts and remove the ^ from the solidity version in hardhat.config & solhin.json. Now it compiles perfectly!