From f45186b32856d1eb79f211d2ba1fef47bf6b84cd Mon Sep 17 00:00:00 2001 From: Mario Cao Date: Fri, 21 May 2021 11:39:41 +0200 Subject: [PATCH] chore: enable floating pragma --- contracts/BufferLib.sol | 2 +- contracts/CBOR.sol | 3 ++- contracts/Request.sol | 2 +- contracts/UsingWitnet.sol | 3 ++- contracts/Witnet.sol | 3 ++- contracts/WitnetRequestBoard.sol | 2 +- contracts/WitnetRequestBoardInterface.sol | 2 +- contracts/WitnetRequestBoardProxy.sol | 2 +- test/helpers/RequestTestHelper.sol | 2 +- 9 files changed, 12 insertions(+), 9 deletions(-) diff --git a/contracts/BufferLib.sol b/contracts/BufferLib.sol index 916efdc3c..9d679fcfe 100644 --- a/contracts/BufferLib.sol +++ b/contracts/BufferLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity >=0.7.0 <0.9.0; /** diff --git a/contracts/CBOR.sol b/contracts/CBOR.sol index c6ce4c204..c0807c7fd 100644 --- a/contracts/CBOR.sol +++ b/contracts/CBOR.sol @@ -1,6 +1,7 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.4; +pragma solidity >=0.7.0 <0.9.0; +pragma experimental ABIEncoderV2; import "./BufferLib.sol"; diff --git a/contracts/Request.sol b/contracts/Request.sol index 4ac00cf34..29d5b05e7 100644 --- a/contracts/Request.sol +++ b/contracts/Request.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity >=0.7.0 <0.9.0; /** diff --git a/contracts/UsingWitnet.sol b/contracts/UsingWitnet.sol index 6329d4078..9a18e514f 100644 --- a/contracts/UsingWitnet.sol +++ b/contracts/UsingWitnet.sol @@ -1,6 +1,7 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity >=0.7.0 <0.9.0; +pragma experimental ABIEncoderV2; import "./Request.sol"; import "./Witnet.sol"; diff --git a/contracts/Witnet.sol b/contracts/Witnet.sol index b208d6a9c..2a5ce1413 100644 --- a/contracts/Witnet.sol +++ b/contracts/Witnet.sol @@ -1,6 +1,7 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.4; +pragma solidity >=0.7.0 <0.9.0; +pragma experimental ABIEncoderV2; import "./CBOR.sol"; diff --git a/contracts/WitnetRequestBoard.sol b/contracts/WitnetRequestBoard.sol index c138a5c5e..f4469bf15 100644 --- a/contracts/WitnetRequestBoard.sol +++ b/contracts/WitnetRequestBoard.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.4; +pragma solidity >=0.7.0 <0.9.0; import "./WitnetRequestBoardInterface.sol"; import "./Request.sol"; diff --git a/contracts/WitnetRequestBoardInterface.sol b/contracts/WitnetRequestBoardInterface.sol index 72f061fff..011307931 100644 --- a/contracts/WitnetRequestBoardInterface.sol +++ b/contracts/WitnetRequestBoardInterface.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity >=0.7.0 <0.9.0; /** diff --git a/contracts/WitnetRequestBoardProxy.sol b/contracts/WitnetRequestBoardProxy.sol index 4cbaef1af..396089d82 100644 --- a/contracts/WitnetRequestBoardProxy.sol +++ b/contracts/WitnetRequestBoardProxy.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.4; +pragma solidity >=0.7.0 <0.9.0; import "./WitnetRequestBoardInterface.sol"; diff --git a/test/helpers/RequestTestHelper.sol b/test/helpers/RequestTestHelper.sol index d482aeaec..ec32dafdd 100644 --- a/test/helpers/RequestTestHelper.sol +++ b/test/helpers/RequestTestHelper.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.6.0 <0.9.0; +pragma solidity >=0.7.0 <0.9.0; import "../../contracts/Request.sol";