solidity >= 0.7.5 < 0.9 0 how to add hardhat config #6638
Replies: 1 comment
-
Open your Hardhat configuration file in a code editor. Locate the solidity object or section in your configuration file. It might look something like this: Try compiling your project again using Hardhat. The specified Solidity version range should now allow compatibility with the contracts that previously caused the error. By specifying a version range in your Hardhat configuration, you allow Solidity files with pragmas within that range to be compiled without errors. Adjusting the version range to include the necessary Solidity versions resolves compatibility issues with your project's contracts. |
Beta Was this translation helpful? Give feedback.
-
pragma solidity >=0.7.0 <0.9.0;
I use different versions of solidity and when I compile I get this error
Error HH606: The project cannot be compiled, see reasons below.
These files and its dependencies cannot be compiled with your config. This can happen because they have incompatible Solidity pragmas, or don't match any of your configured Solidity compilers.
how can I add these versions to my hardhat config version >=0.7.5 <0.9.;
could you help me about it . thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions