mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove version pragmas using .99
.
This commit is contained in:
parent
a993ab4db7
commit
191070d322
@ -351,7 +351,7 @@ commandline compiler for linking):
|
||||
|
||||
// This will not compile after 0.6.0
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.5.0 <0.5.99;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
library OldLibrary {
|
||||
function someFunction(uint8 a) public returns(bool);
|
||||
@ -438,7 +438,7 @@ New version:
|
||||
::
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.5.0 <0.5.99;
|
||||
pragma solidity ^0.5.0;
|
||||
// This will not compile after 0.6.0
|
||||
|
||||
contract OtherContract {
|
||||
|
@ -541,7 +541,7 @@ For example,
|
||||
::
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.6.99 <0.9.0;
|
||||
pragma solidity >=0.7.0 <0.9.0;
|
||||
|
||||
|
||||
contract Test {
|
||||
|
@ -496,7 +496,7 @@ To obtain the previous behaviour, an ``unchecked`` block can be used:
|
||||
::
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >0.7.99;
|
||||
pragma solidity ^0.8.0;
|
||||
contract C {
|
||||
function f(uint a, uint b) pure public returns (uint) {
|
||||
// This addition will wrap on underflow.
|
||||
|
Loading…
Reference in New Issue
Block a user