I am currently using the 'Hardhat documentation' to use a correct solidity compiler version, but while precisely compiling my file.sol with pragma solidity ^0.6.0
, I am still getting an error:
module.exports = {
solidity: {
version: "0.6.5",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
};
Error message
"Source file requires different compiler version (current compiler is 0.8.17+commit.8df45f5f.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version"
It seems that HardHat can't download the compiler, can you help me plz?