Skip to content

Not able to Compile My Sol file #4879

Answered by 0xpolarzero
AnugrahYadav asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AnugrahYadav. Could you please share the code related to this issue? Sometimes, the contracts that your contract inherits from use different Solidity versions, and this tree can go up to requiring several versions at the same time.

That's why you might need to include these different compiler versions in your hardhat.config.js file, in such a way:

solidity: {
  compilers: [
    {
      version: '0.8.8',
    },
    {
      version: '0.4.24',
    },
  ],
},

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@AnugrahYadav
Comment options

Comment options

You must be logged in to vote
2 replies
@AnugrahYadav
Comment options

@paulcoffee85
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
1 reply
@0xpolarzero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants