Remove version pragmas using .99.

This commit is contained in:
chriseth 2020-12-16 19:00:49 +01:00 committed by Alex Beregszaszi
parent a993ab4db7
commit 191070d322
3 changed files with 4 additions and 4 deletions

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 {

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 {

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.