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
I have completed a new installation of Hardhat.
In the hardhat.config.js file, I have this code: module.exports = { solidity: "0.8.24", };
While in the default Lock.sol contract, which is created during the installation, I have this pragma statement: pragma solidity ^0.8.24;
However, I am getting the following warning on my pragma statement:
"Source file requires different compiler version (current compiler is 0.8.19+commit.7dd6d404.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version(5333)"
Hi @kanej The issue was with VS Code. It was set to use the "latest" version of Solidity, but it actually wasn't for some reason. After fixing the problem, the error has gone away. This "issue" may be closed. Thank you.
I have completed a new installation of Hardhat.
In the hardhat.config.js file, I have this code:
module.exports = { solidity: "0.8.24", };
While in the default Lock.sol contract, which is created during the installation, I have this pragma statement:
pragma solidity ^0.8.24;
However, I am getting the following warning on my pragma statement:
"Source file requires different compiler version (current compiler is 0.8.19+commit.7dd6d404.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version(5333)"
Originally posted by @JF0001 in #5201
The text was updated successfully, but these errors were encountered: