0

I keep getting an error that my truffle is currently running version 0.5.16. Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify "pragma solidity >=0.8.4"

My truffle.js has the following:

  compilers: {
    solc: {
      version: ">=0.8.4",
    },
  }

Under module.exports.

But I am still getting this error.

How can I fix this ?

2
  • What does truffle --version return?
    – Ismael
    Jul 6 at 23:14
  • @Ismael I have the required version installed.
    – Thor
    Jul 7 at 1:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.