Pragma Lines #3934
Greenswordfish1
started this conversation in
General
Pragma Lines
#3934
Replies: 3 comments 2 replies
-
^ creates a range of versions you can use to compile the contract. The range starts at the version that you specify. In this case you can compile your contract in any version from 0.8.0 to the last, it includes 0.8.0 but you can try it out in Remix. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Greenswordfish1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would these two mean the same thing? pragma solidity ^0.8.0 & pragma solidity >= 0.8.0 < 0.9.0 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a difficult time differentiating the meaning of the ^ code
For example
pragma solidity ^0.8.0;
Does that mean all versions UP TO 0.8.0 and including 0.8.0 or 0.8.0 and ABOVE?
Many of the definitions are confusing. I've heard 2 people explain them and say the opposite for this. Thank you
Beta Was this translation helpful? Give feedback.
All reactions