From 1da1d5048a90c11deacba3c7e46d4aa9c7b84b67 Mon Sep 17 00:00:00 2001 From: Ignatius Widjaja Date: Tue, 7 Nov 2023 14:44:36 +1100 Subject: [PATCH] update solc version to 0.8.19 --- foundry.toml | 1 + script/DeployChildContracts.s.sol | 2 +- script/DeployRootContracts.s.sol | 2 +- script/InitializeChildContracts.s.sol | 2 +- script/InitializeRootContracts.s.sol | 2 +- script/Utils.sol | 2 +- src/child/ChildAxelarBridgeAdaptor.sol | 2 +- src/child/ChildERC20.sol | 2 +- src/child/ChildERC20Bridge.sol | 2 +- src/child/WIMX.sol | 2 +- src/interfaces/child/IChildAxelarBridgeAdaptor.sol | 2 +- src/interfaces/child/IChildERC20.sol | 2 +- src/interfaces/child/IChildERC20Bridge.sol | 2 +- src/interfaces/child/IChildERC20BridgeAdaptor.sol | 2 +- src/interfaces/child/IWIMX.sol | 2 +- src/interfaces/root/IRootAxelarBridgeAdaptor.sol | 2 +- src/interfaces/root/IRootERC20Bridge.sol | 2 +- src/interfaces/root/IRootERC20BridgeAdaptor.sol | 2 +- src/interfaces/root/IWETH.sol | 2 +- src/lib/EIP712MetaTransaction.sol | 2 +- src/lib/EIP712Upgradeable.sol | 2 +- src/root/RootAxelarBridgeAdaptor.sol | 2 +- src/root/RootERC20Bridge.sol | 2 +- src/test/child/ChildERC20FailOnBurn.sol | 2 +- src/test/child/MockChildAxelarGasService.sol | 2 +- src/test/child/MockChildAxelarGateway.sol | 2 +- src/test/child/MockChildERC20Bridge.sol | 2 +- src/test/root/MockAdaptor.sol | 2 +- src/test/root/MockAxelarGasService.sol | 2 +- src/test/root/MockAxelarGateway.sol | 2 +- src/test/root/StubRootBridge.sol | 2 +- src/test/root/WETH.sol | 2 +- test/integration/child/ChildAxelarBridge.t.sol | 2 +- .../child/withdrawals/ChildAxelarBridgeWithdraw.t.sol | 2 +- .../child/withdrawals/ChildAxelarBridgeWithdrawIMX.t.sol | 2 +- .../child/withdrawals/ChildAxelarBridgeWithdrawTo.t.sol | 2 +- .../child/withdrawals/ChildAxelarBridgeWithdrawToIMX.t.sol | 2 +- test/integration/root/RootERC20Bridge.t.sol | 2 +- .../root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol | 2 +- test/unit/child/ChildAxelarBridgeAdaptor.t.sol | 2 +- test/unit/child/ChildERC20Bridge.t.sol | 2 +- test/unit/child/WIMX.t.sol | 2 +- test/unit/child/withdrawals/ChildERC20BridgeWithdraw.t.sol | 2 +- test/unit/child/withdrawals/ChildERC20BridgeWithdrawIMX.t.sol | 2 +- test/unit/child/withdrawals/ChildERC20BridgeWithdrawTo.t.sol | 2 +- test/unit/child/withdrawals/ChildERC20BridgeWithdrawToIMX.t.sol | 2 +- test/unit/root/RootAxelarBridgeAdaptor.t.sol | 2 +- test/unit/root/RootERC20Bridge.t.sol | 2 +- .../unit/root/withdrawals/RootAxelarBridgeAdaptorWithdraw.t.sol | 2 +- test/unit/root/withdrawals/RootERC20BridgeWithdraw.t.sol | 2 +- test/utils.t.sol | 2 +- 51 files changed, 51 insertions(+), 50 deletions(-) diff --git a/foundry.toml b/foundry.toml index 25b918f9c..ed9b61af5 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,5 +2,6 @@ src = "src" out = "out" libs = ["lib"] +solc-version = "0.8.19" # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options diff --git a/script/DeployChildContracts.s.sol b/script/DeployChildContracts.s.sol index ecab9c0bf..2ae3e902d 100644 --- a/script/DeployChildContracts.s.sol +++ b/script/DeployChildContracts.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Script, console2} from "forge-std/Script.sol"; diff --git a/script/DeployRootContracts.s.sol b/script/DeployRootContracts.s.sol index b97545a01..65fe92afe 100644 --- a/script/DeployRootContracts.s.sol +++ b/script/DeployRootContracts.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Script, console2} from "forge-std/Script.sol"; diff --git a/script/InitializeChildContracts.s.sol b/script/InitializeChildContracts.s.sol index 722c8b582..604b52c3e 100644 --- a/script/InitializeChildContracts.s.sol +++ b/script/InitializeChildContracts.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Script, console2} from "forge-std/Script.sol"; diff --git a/script/InitializeRootContracts.s.sol b/script/InitializeRootContracts.s.sol index a34ee0224..ee7d0fc73 100644 --- a/script/InitializeRootContracts.s.sol +++ b/script/InitializeRootContracts.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Script, console2} from "forge-std/Script.sol"; diff --git a/script/Utils.sol b/script/Utils.sol index 65e758584..4ba1d8602 100644 --- a/script/Utils.sol +++ b/script/Utils.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {AddressToString} from "@axelar-gmp-sdk-solidity/contracts/libs/AddressString.sol"; diff --git a/src/child/ChildAxelarBridgeAdaptor.sol b/src/child/ChildAxelarBridgeAdaptor.sol index 5e725257e..ee0b92c7d 100644 --- a/src/child/ChildAxelarBridgeAdaptor.sol +++ b/src/child/ChildAxelarBridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {AxelarExecutable} from "@axelar-gmp-sdk-solidity/contracts/executable/AxelarExecutable.sol"; import {IAxelarGasService} from "@axelar-cgp-solidity/contracts/interfaces/IAxelarGasService.sol"; diff --git a/src/child/ChildERC20.sol b/src/child/ChildERC20.sol index a60f8d537..198ac05d9 100644 --- a/src/child/ChildERC20.sol +++ b/src/child/ChildERC20.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2.0 // Adapted from OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "../lib/EIP712MetaTransaction.sol"; diff --git a/src/child/ChildERC20Bridge.sol b/src/child/ChildERC20Bridge.sol index 3bded411f..7e17c2b8f 100644 --- a/src/child/ChildERC20Bridge.sol +++ b/src/child/ChildERC20Bridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/src/child/WIMX.sol b/src/child/WIMX.sol index 1e778eaa1..f01137e0b 100644 --- a/src/child/WIMX.sol +++ b/src/child/WIMX.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IWIMX} from "../interfaces/child/IWIMX.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; diff --git a/src/interfaces/child/IChildAxelarBridgeAdaptor.sol b/src/interfaces/child/IChildAxelarBridgeAdaptor.sol index cca42edcf..2aa22e0d3 100644 --- a/src/interfaces/child/IChildAxelarBridgeAdaptor.sol +++ b/src/interfaces/child/IChildAxelarBridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; interface IChildAxelarBridgeAdaptorErrors { /// @notice Error when a zero address is given when not valid. diff --git a/src/interfaces/child/IChildERC20.sol b/src/interfaces/child/IChildERC20.sol index 6d580432d..e0d91eb2b 100644 --- a/src/interfaces/child/IChildERC20.sol +++ b/src/interfaces/child/IChildERC20.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache 2.0 // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IERC20MetadataUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol"; diff --git a/src/interfaces/child/IChildERC20Bridge.sol b/src/interfaces/child/IChildERC20Bridge.sol index 15952be4f..c5e975196 100644 --- a/src/interfaces/child/IChildERC20Bridge.sol +++ b/src/interfaces/child/IChildERC20Bridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; diff --git a/src/interfaces/child/IChildERC20BridgeAdaptor.sol b/src/interfaces/child/IChildERC20BridgeAdaptor.sol index 1407beb0b..11acd0ec7 100644 --- a/src/interfaces/child/IChildERC20BridgeAdaptor.sol +++ b/src/interfaces/child/IChildERC20BridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; interface IChildERC20BridgeAdaptor { /** diff --git a/src/interfaces/child/IWIMX.sol b/src/interfaces/child/IWIMX.sol index c6c427c63..e8591c1e7 100644 --- a/src/interfaces/child/IWIMX.sol +++ b/src/interfaces/child/IWIMX.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/src/interfaces/root/IRootAxelarBridgeAdaptor.sol b/src/interfaces/root/IRootAxelarBridgeAdaptor.sol index e1cddac17..d009aa04b 100644 --- a/src/interfaces/root/IRootAxelarBridgeAdaptor.sol +++ b/src/interfaces/root/IRootAxelarBridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; interface IRootAxelarBridgeAdaptorErrors { /// @notice Error when a zero address is given when not valid. diff --git a/src/interfaces/root/IRootERC20Bridge.sol b/src/interfaces/root/IRootERC20Bridge.sol index a28fa1123..220d8e9ad 100644 --- a/src/interfaces/root/IRootERC20Bridge.sol +++ b/src/interfaces/root/IRootERC20Bridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; diff --git a/src/interfaces/root/IRootERC20BridgeAdaptor.sol b/src/interfaces/root/IRootERC20BridgeAdaptor.sol index d0604e85a..727aa71e4 100644 --- a/src/interfaces/root/IRootERC20BridgeAdaptor.sol +++ b/src/interfaces/root/IRootERC20BridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; // TODO: This is likely able to become a generic bridge adaptor, not just for ERC20 tokens. interface IRootERC20BridgeAdaptor { diff --git a/src/interfaces/root/IWETH.sol b/src/interfaces/root/IWETH.sol index 4cc378abc..a8392cbd3 100644 --- a/src/interfaces/root/IWETH.sol +++ b/src/interfaces/root/IWETH.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/src/lib/EIP712MetaTransaction.sol b/src/lib/EIP712MetaTransaction.sol index 9ef0944c6..309f9b414 100644 --- a/src/lib/EIP712MetaTransaction.sol +++ b/src/lib/EIP712MetaTransaction.sol @@ -1,5 +1,5 @@ //SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import "./EIP712Upgradeable.sol"; diff --git a/src/lib/EIP712Upgradeable.sol b/src/lib/EIP712Upgradeable.sol index 8b746e247..28731a529 100644 --- a/src/lib/EIP712Upgradeable.sol +++ b/src/lib/EIP712Upgradeable.sol @@ -2,7 +2,7 @@ // slither-disable-start naming-convention // Adapted from OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; diff --git a/src/root/RootAxelarBridgeAdaptor.sol b/src/root/RootAxelarBridgeAdaptor.sol index 8b4f675c7..cdbc038d1 100644 --- a/src/root/RootAxelarBridgeAdaptor.sol +++ b/src/root/RootAxelarBridgeAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {AxelarExecutable} from "@axelar-gmp-sdk-solidity/contracts/executable/AxelarExecutable.sol"; import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol"; diff --git a/src/root/RootERC20Bridge.sol b/src/root/RootERC20Bridge.sol index 20e7b76b2..57174cf1f 100644 --- a/src/root/RootERC20Bridge.sol +++ b/src/root/RootERC20Bridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/src/test/child/ChildERC20FailOnBurn.sol b/src/test/child/ChildERC20FailOnBurn.sol index 5fd11ad86..8d86b6e99 100644 --- a/src/test/child/ChildERC20FailOnBurn.sol +++ b/src/test/child/ChildERC20FailOnBurn.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache 2.0 // Adapted from OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import "../../child/ChildERC20.sol"; diff --git a/src/test/child/MockChildAxelarGasService.sol b/src/test/child/MockChildAxelarGasService.sol index 1b0fc31eb..fb3976923 100644 --- a/src/test/child/MockChildAxelarGasService.sol +++ b/src/test/child/MockChildAxelarGasService.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; contract MockChildAxelarGasService { function payNativeGasForContractCall( diff --git a/src/test/child/MockChildAxelarGateway.sol b/src/test/child/MockChildAxelarGateway.sol index d4c9a1b57..15408557e 100644 --- a/src/test/child/MockChildAxelarGateway.sol +++ b/src/test/child/MockChildAxelarGateway.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; contract MockChildAxelarGateway { function validateContractCall(bytes32, string calldata, string calldata, bytes32) external pure returns (bool) { diff --git a/src/test/child/MockChildERC20Bridge.sol b/src/test/child/MockChildERC20Bridge.sol index 212dd0fd8..dc2caa227 100644 --- a/src/test/child/MockChildERC20Bridge.sol +++ b/src/test/child/MockChildERC20Bridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; contract MockChildERC20Bridge { function onMessageReceive(string calldata, string calldata, bytes calldata) external {} diff --git a/src/test/root/MockAdaptor.sol b/src/test/root/MockAdaptor.sol index ae73b3b2d..12fffc280 100644 --- a/src/test/root/MockAdaptor.sol +++ b/src/test/root/MockAdaptor.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; // @dev A contract for ensuring the Axelar Bridge Adaptor is called correctly during unit tests. contract MockAdaptor { diff --git a/src/test/root/MockAxelarGasService.sol b/src/test/root/MockAxelarGasService.sol index 10b23af31..fe1d7ffed 100644 --- a/src/test/root/MockAxelarGasService.sol +++ b/src/test/root/MockAxelarGasService.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; // @dev A contract for ensuring the Axelar gas service is called correctly during unit tests. contract MockAxelarGasService { diff --git a/src/test/root/MockAxelarGateway.sol b/src/test/root/MockAxelarGateway.sol index 8b16342a2..2d3328d5d 100644 --- a/src/test/root/MockAxelarGateway.sol +++ b/src/test/root/MockAxelarGateway.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; // @dev A contract for ensuring the Axelar Gateway is called correctly during unit tests. contract MockAxelarGateway { diff --git a/src/test/root/StubRootBridge.sol b/src/test/root/StubRootBridge.sol index e8fa980c0..1928841cd 100644 --- a/src/test/root/StubRootBridge.sol +++ b/src/test/root/StubRootBridge.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; diff --git a/src/test/root/WETH.sol b/src/test/root/WETH.sol index e073e12d0..93c9bb59b 100644 --- a/src/test/root/WETH.sol +++ b/src/test/root/WETH.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {IWETH} from "../../interfaces/root/IWETH.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; diff --git a/test/integration/child/ChildAxelarBridge.t.sol b/test/integration/child/ChildAxelarBridge.t.sol index 51ea987bf..323858423 100644 --- a/test/integration/child/ChildAxelarBridge.t.sol +++ b/test/integration/child/ChildAxelarBridge.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol"; diff --git a/test/integration/child/withdrawals/ChildAxelarBridgeWithdraw.t.sol b/test/integration/child/withdrawals/ChildAxelarBridgeWithdraw.t.sol index 5b098ac91..e06b0d4bc 100644 --- a/test/integration/child/withdrawals/ChildAxelarBridgeWithdraw.t.sol +++ b/test/integration/child/withdrawals/ChildAxelarBridgeWithdraw.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawIMX.t.sol b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawIMX.t.sol index 04f18e1f5..b5911ecf0 100644 --- a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawIMX.t.sol +++ b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawIMX.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawTo.t.sol b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawTo.t.sol index 8b1378917..0065e5155 100644 --- a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawTo.t.sol +++ b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawTo.t.sol @@ -1 +1 @@ - +pragma solidity 0.8.19; diff --git a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawToIMX.t.sol b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawToIMX.t.sol index 2dde96f76..cdbc2428c 100644 --- a/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawToIMX.t.sol +++ b/test/integration/child/withdrawals/ChildAxelarBridgeWithdrawToIMX.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/integration/root/RootERC20Bridge.t.sol b/test/integration/root/RootERC20Bridge.t.sol index dc81b1e17..61c0ba8bd 100644 --- a/test/integration/root/RootERC20Bridge.t.sol +++ b/test/integration/root/RootERC20Bridge.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol b/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol index 39a53a412..c50f0497e 100644 --- a/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol +++ b/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/child/ChildAxelarBridgeAdaptor.t.sol b/test/unit/child/ChildAxelarBridgeAdaptor.t.sol index 148445c60..518db9286 100644 --- a/test/unit/child/ChildAxelarBridgeAdaptor.t.sol +++ b/test/unit/child/ChildAxelarBridgeAdaptor.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol"; diff --git a/test/unit/child/ChildERC20Bridge.t.sol b/test/unit/child/ChildERC20Bridge.t.sol index 359d70ec0..2beb01eba 100644 --- a/test/unit/child/ChildERC20Bridge.t.sol +++ b/test/unit/child/ChildERC20Bridge.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/child/WIMX.t.sol b/test/unit/child/WIMX.t.sol index 570740f73..2223566cf 100644 --- a/test/unit/child/WIMX.t.sol +++ b/test/unit/child/WIMX.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test} from "forge-std/Test.sol"; import {WIMX} from "../../../src/child/WIMX.sol"; diff --git a/test/unit/child/withdrawals/ChildERC20BridgeWithdraw.t.sol b/test/unit/child/withdrawals/ChildERC20BridgeWithdraw.t.sol index c2987c883..0b698567a 100644 --- a/test/unit/child/withdrawals/ChildERC20BridgeWithdraw.t.sol +++ b/test/unit/child/withdrawals/ChildERC20BridgeWithdraw.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawIMX.t.sol b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawIMX.t.sol index 74cac014c..5a1b96c28 100644 --- a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawIMX.t.sol +++ b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawIMX.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; diff --git a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawTo.t.sol b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawTo.t.sol index 34a726254..2ea44f887 100644 --- a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawTo.t.sol +++ b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawTo.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawToIMX.t.sol b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawToIMX.t.sol index 3a040b003..3706c6444 100644 --- a/test/unit/child/withdrawals/ChildERC20BridgeWithdrawToIMX.t.sol +++ b/test/unit/child/withdrawals/ChildERC20BridgeWithdrawToIMX.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/root/RootAxelarBridgeAdaptor.t.sol b/test/unit/root/RootAxelarBridgeAdaptor.t.sol index 76281fce0..942400908 100644 --- a/test/unit/root/RootAxelarBridgeAdaptor.t.sol +++ b/test/unit/root/RootAxelarBridgeAdaptor.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/root/RootERC20Bridge.t.sol b/test/unit/root/RootERC20Bridge.t.sol index dc965e883..2737a5774 100644 --- a/test/unit/root/RootERC20Bridge.t.sol +++ b/test/unit/root/RootERC20Bridge.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/root/withdrawals/RootAxelarBridgeAdaptorWithdraw.t.sol b/test/unit/root/withdrawals/RootAxelarBridgeAdaptorWithdraw.t.sol index 6b997c686..9f1cfdb2d 100644 --- a/test/unit/root/withdrawals/RootAxelarBridgeAdaptorWithdraw.t.sol +++ b/test/unit/root/withdrawals/RootAxelarBridgeAdaptorWithdraw.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/unit/root/withdrawals/RootERC20BridgeWithdraw.t.sol b/test/unit/root/withdrawals/RootERC20BridgeWithdraw.t.sol index 186cbdccc..e744465b7 100644 --- a/test/unit/root/withdrawals/RootERC20BridgeWithdraw.t.sol +++ b/test/unit/root/withdrawals/RootERC20BridgeWithdraw.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; diff --git a/test/utils.t.sol b/test/utils.t.sol index 3e146063b..44c49dc1c 100644 --- a/test/utils.t.sol +++ b/test/utils.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache 2.0 -pragma solidity ^0.8.21; +pragma solidity 0.8.19; import {Test, console2} from "forge-std/Test.sol"; import {ERC20PresetMinterPauser} from "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";