2

How would I specify in the pragma solidity a range of acceptable solidity versions. If I want to specify that it should be gte(greater than equal) for example I could use pragma solidity >=0.8.0, and so on for the other in/equalities. But how do I specify a range for example from 0.8.0 to 0.8.10?

2 Answers 2

3

I found the answer it's simply as follows:

pragma solidity >=0.8.0 <=0.8.10;
1
  • upvoted answer .
    – Badr Bellaj
    Commented Jun 19, 2022 at 12:33
0

You can use

pragma solidity >=0.8.0 <=0.8.10;
3
  • 1
    Hmm, I managed to find the answer and it's identical to yours :)
    – MShakeG
    Commented Jun 18, 2022 at 11:20
  • @MShakeG You posted a few seconds before this answer. So technically, your own answer should be the one to select ^^ Commented Jun 18, 2022 at 13:00
  • 1
    @MShakeG the most important thing is that you figured out the solution. It doesn't matter who provided the answer
    – Badr Bellaj
    Commented Jun 19, 2022 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.