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
?
Add a comment
|
2 Answers
I found the answer it's simply as follows:
pragma solidity >=0.8.0 <=0.8.10;
You can use
pragma solidity >=0.8.0 <=0.8.10;
-
1Hmm, I managed to find the answer and it's identical to yours :)– MShakeGCommented 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