Merge pull request #10637 from ethereum/remove99

Remove version pragmas using `.99`.
This commit is contained in:
Alex Beregszaszi
2020-12-16 20:14:44 +00:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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.