From c3051c92b9ba7c54a9dd1b686305190ee8dd2a11 Mon Sep 17 00:00:00 2001 From: t11s Date: Thu, 8 Feb 2024 16:41:21 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20Upgra?= =?UTF-8?q?de=20to=200.8.24=20+=20Cancun=20(#408)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foundry.toml | 7 ++++--- src/test/Auth.t.sol | 2 +- src/test/Bytes32AddressLib.t.sol | 2 +- src/test/CREATE3.t.sol | 2 +- src/test/DSTestPlus.t.sol | 2 +- src/test/ERC1155.t.sol | 2 +- src/test/ERC1155B.t.sol | 2 +- src/test/ERC20.t.sol | 2 +- src/test/ERC4626.t.sol | 2 +- src/test/ERC721.t.sol | 2 +- src/test/FixedPointMathLib.t.sol | 2 +- src/test/LibBitmap.t.sol | 2 +- src/test/MerkleProof.t.sol | 2 +- src/test/MultiRolesAuthority.t.sol | 2 +- src/test/Owned.t.sol | 2 +- src/test/ReentrancyGuard.t.sol | 2 +- src/test/RolesAuthority.t.sol | 2 +- src/test/SSTORE2.t.sol | 2 +- src/test/SafeCastLib.t.sol | 2 +- src/test/SafeTransferLib.t.sol | 2 +- src/test/WETH.t.sol | 2 +- 21 files changed, 24 insertions(+), 23 deletions(-) diff --git a/foundry.toml b/foundry.toml index 8a4fd22d..c130d617 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,7 +1,8 @@ -[default] -solc = "0.8.10" +[profile.default] +solc = "0.8.24" +evm_version = "cancun" bytecode_hash = "none" optimizer_runs = 1000000 -[intense] +[profile.intense] fuzz_runs = 10000 diff --git a/src/test/Auth.t.sol b/src/test/Auth.t.sol index 00e29ccf..0af8695c 100644 --- a/src/test/Auth.t.sol +++ b/src/test/Auth.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {MockAuthChild} from "./utils/mocks/MockAuthChild.sol"; diff --git a/src/test/Bytes32AddressLib.t.sol b/src/test/Bytes32AddressLib.t.sol index 50d8f971..da6e2667 100644 --- a/src/test/Bytes32AddressLib.t.sol +++ b/src/test/Bytes32AddressLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/CREATE3.t.sol b/src/test/CREATE3.t.sol index 64e25751..864b9592 100644 --- a/src/test/CREATE3.t.sol +++ b/src/test/CREATE3.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {WETH} from "../tokens/WETH.sol"; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/DSTestPlus.t.sol b/src/test/DSTestPlus.t.sol index 4842abf8..b5077a38 100644 --- a/src/test/DSTestPlus.t.sol +++ b/src/test/DSTestPlus.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/ERC1155.t.sol b/src/test/ERC1155.t.sol index dd76a494..ee724427 100644 --- a/src/test/ERC1155.t.sol +++ b/src/test/ERC1155.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {DSInvariantTest} from "./utils/DSInvariantTest.sol"; diff --git a/src/test/ERC1155B.t.sol b/src/test/ERC1155B.t.sol index 014e4094..99de0aa6 100644 --- a/src/test/ERC1155B.t.sol +++ b/src/test/ERC1155B.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {DSInvariantTest} from "./utils/DSInvariantTest.sol"; diff --git a/src/test/ERC20.t.sol b/src/test/ERC20.t.sol index 530a8b2d..791537d9 100644 --- a/src/test/ERC20.t.sol +++ b/src/test/ERC20.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {DSInvariantTest} from "./utils/DSInvariantTest.sol"; diff --git a/src/test/ERC4626.t.sol b/src/test/ERC4626.t.sol index 3c143a96..e2270aec 100644 --- a/src/test/ERC4626.t.sol +++ b/src/test/ERC4626.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/ERC721.t.sol b/src/test/ERC721.t.sol index d0d87a66..571a133e 100644 --- a/src/test/ERC721.t.sol +++ b/src/test/ERC721.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {DSInvariantTest} from "./utils/DSInvariantTest.sol"; diff --git a/src/test/FixedPointMathLib.t.sol b/src/test/FixedPointMathLib.t.sol index d8e71765..3af55009 100644 --- a/src/test/FixedPointMathLib.t.sol +++ b/src/test/FixedPointMathLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/LibBitmap.t.sol b/src/test/LibBitmap.t.sol index 7ef65230..ef59f24c 100644 --- a/src/test/LibBitmap.t.sol +++ b/src/test/LibBitmap.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/MerkleProof.t.sol b/src/test/MerkleProof.t.sol index 37726f37..2eb4714c 100644 --- a/src/test/MerkleProof.t.sol +++ b/src/test/MerkleProof.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/MultiRolesAuthority.t.sol b/src/test/MultiRolesAuthority.t.sol index 65031923..823ea2a2 100644 --- a/src/test/MultiRolesAuthority.t.sol +++ b/src/test/MultiRolesAuthority.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {MockAuthority} from "./utils/mocks/MockAuthority.sol"; diff --git a/src/test/Owned.t.sol b/src/test/Owned.t.sol index 6c30c103..5d30f92d 100644 --- a/src/test/Owned.t.sol +++ b/src/test/Owned.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0-only -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {MockOwned} from "./utils/mocks/MockOwned.sol"; diff --git a/src/test/ReentrancyGuard.t.sol b/src/test/ReentrancyGuard.t.sol index 048426f4..a24f56af 100644 --- a/src/test/ReentrancyGuard.t.sol +++ b/src/test/ReentrancyGuard.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/RolesAuthority.t.sol b/src/test/RolesAuthority.t.sol index 6c36cb3e..5091f883 100644 --- a/src/test/RolesAuthority.t.sol +++ b/src/test/RolesAuthority.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {MockAuthority} from "./utils/mocks/MockAuthority.sol"; diff --git a/src/test/SSTORE2.t.sol b/src/test/SSTORE2.t.sol index c9f9fd0b..377bf2fc 100644 --- a/src/test/SSTORE2.t.sol +++ b/src/test/SSTORE2.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/SafeCastLib.t.sol b/src/test/SafeCastLib.t.sol index b97b244b..b9b606ad 100644 --- a/src/test/SafeCastLib.t.sol +++ b/src/test/SafeCastLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; diff --git a/src/test/SafeTransferLib.t.sol b/src/test/SafeTransferLib.t.sol index 8bed492e..350c09ea 100644 --- a/src/test/SafeTransferLib.t.sol +++ b/src/test/SafeTransferLib.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {MockERC20} from "./utils/mocks/MockERC20.sol"; import {RevertingToken} from "./utils/weird-tokens/RevertingToken.sol"; diff --git a/src/test/WETH.t.sol b/src/test/WETH.t.sol index 8bcb86b0..53299c20 100644 --- a/src/test/WETH.t.sol +++ b/src/test/WETH.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity 0.8.24; import {DSTestPlus} from "./utils/DSTestPlus.sol"; import {DSInvariantTest} from "./utils/DSInvariantTest.sol";