version error in lesson 7 #301
-
Solidity ^0.8.8 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly. Learn more at https://hardhat.org/reference/solidity-support Error HH606: The project cannot be compiled, see reasons below. The Solidity version pragma statement in these files doesn't match any of the configured compilers in your config. Change the pragma or configure additional compiler versions in your hardhat config.
To learn more, run the command again with --verbose Read about compiler configuration at https://hardhat.org/config added both version in hardhat-config but still showing this and I also tried three version including 0.8.0 but still error remain same |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @6Hexa , I ran into the same issue. To fix it I installed solhint plugin for hard hat Then edit the versions in there solhint.json. I also removed the ^ from all contracts which was throwing an error and matched the pragma version to the installed versions. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @6Hexa , I ran into the same issue. To fix it I installed solhint plugin for hard hat
[https://hardhat.org/plugins/nomiclabs-hardhat-solhint]
Then edit the versions in there solhint.json.
I also removed the ^ from all contracts which was throwing an error and matched the pragma version to the installed versions.
Hope this helps!