From 191070d3229308204743010e06421889c28c3998 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 16 Dec 2020 19:00:49 +0100 Subject: [PATCH] Remove version pragmas using `.99`. --- docs/050-breaking-changes.rst | 4 ++-- docs/abi-spec.rst | 2 +- docs/control-structures.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/050-breaking-changes.rst b/docs/050-breaking-changes.rst index 8f0df10f9..57aa8f80a 100644 --- a/docs/050-breaking-changes.rst +++ b/docs/050-breaking-changes.rst @@ -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 { diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst index 5164bd694..6e897db50 100644 --- a/docs/abi-spec.rst +++ b/docs/abi-spec.rst @@ -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 { diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 76f2a7497..1d55e5881 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -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.