**Lesson 7**: Compiler version couldn't match though I have configured in hardhat.config.js #6137
-
MockV3Aggregator.sol code :
hardhat.config.js code :
I have configured solidity compiler versions into hardhat.config.js file but When I compile it still shows version didn't match. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Just change this version to proper one: module.exports = {
solidity: {
compilers: [
{version: "0.8.8"},
{version: "0.6.0"}
],
},
} Change If you did that and you still see error just reset/reload VSCode or simply delete last number and write something else then delete and write 0 again in following line |
Beta Was this translation helpful? Give feedback.
-
**Error Message getting: **
|
Beta Was this translation helpful? Give feedback.
-
Update and it was overriding my compiler versions. So dumb of me. Thank you for helping though. |
Beta Was this translation helpful? Give feedback.
Update
I was so dumb that I wrote
solidity: "0.8.19"
at last of hardhat.config.js and didn't notice it.and it was overriding my compiler versions. So dumb of me. Thank you for helping though.