You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ /home/ionmind/hardhat-fundme-fcc/node_modules/.bin/hardhat deploy --network rinkeby
Error HH606: The project cannot be compiled, see reasons below.
These files import other files that use a different and incompatible version of Solidity:
* contracts/test/MockV3Aggregator.sol (^0.8.12) imports @chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol (^0.6.0)
To learn more, run the command again with --verbose
Read about compiler configuration at https://hardhat.org/config
After getting this error I modified the hardhat.config.js file as instructed on the video
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!
The text was updated successfully, but these errors were encountered:
DorianDaSilva
changed the title
Lesson 7: Compiler Version Error -> 10:43.16
Lesson 7: Compiler Version Error -> 10:43.16 [SOLVED]
Jun 9, 2022
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!
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!
The text was updated successfully, but these errors were encountered: