From a3ffa768cf0ac4695a66ad5021901e1c9fdb4b07 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Thu, 4 Jul 2024 14:50:10 +0200 Subject: [PATCH] chore(compiler): bump min solidity version to 0.8.26 --- .github/workflows/ci.yml | 2 +- .solhint.json | 2 +- foundry.toml | 2 +- script/Base.s.sol | 2 +- script/Deploy.s.sol | 2 +- script/DeploymentConfig.s.sol | 2 +- src/Foo.sol | 2 +- test/Foo.t.sol | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b65bfd4..496dbf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,7 +143,7 @@ jobs: - name: Install Solidity run: | - wget https://github.com/ethereum/solidity/releases/download/v0.8.19/solc-static-linux + wget https://github.com/ethereum/solidity/releases/download/v0.8.26/solc-static-linux chmod +x solc-static-linux sudo mv solc-static-linux /usr/local/bin/solc diff --git a/.solhint.json b/.solhint.json index ac7469e..99a09a6 100644 --- a/.solhint.json +++ b/.solhint.json @@ -2,7 +2,7 @@ "extends": "solhint:recommended", "rules": { "code-complexity": ["error", 8], - "compiler-version": ["error", ">=0.8.19"], + "compiler-version": ["error", ">=0.8.26"], "func-name-mixedcase": "off", "func-visibility": ["error", { "ignoreConstructors": true }], "max-line-length": ["error", 120], diff --git a/foundry.toml b/foundry.toml index 1c87703..a7d437b 100644 --- a/foundry.toml +++ b/foundry.toml @@ -13,7 +13,7 @@ optimizer_runs = 10_000 out = "out" script = "script" - solc = "0.8.19" + solc = "0.8.26" src = "src" test = "test" diff --git a/script/Base.s.sol b/script/Base.s.sol index 2a106d7..ad9234c 100644 --- a/script/Base.s.sol +++ b/script/Base.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity >=0.8.19 <=0.9.0; +pragma solidity >=0.8.26 <=0.9.0; import { Script } from "forge-std/Script.sol"; diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 68f0689..6e97222 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity >=0.8.19 <=0.9.0; +pragma solidity >=0.8.26 <=0.9.0; import { Foo } from "../src/Foo.sol"; import { BaseScript } from "./Base.s.sol"; diff --git a/script/DeploymentConfig.s.sol b/script/DeploymentConfig.s.sol index 371b7d8..1501ec9 100644 --- a/script/DeploymentConfig.s.sol +++ b/script/DeploymentConfig.s.sol @@ -1,6 +1,6 @@ //// SPDX-License-Identifier: UNLICENSED -pragma solidity >=0.8.19 <=0.9.0; +pragma solidity >=0.8.26 <=0.9.0; import { Script } from "forge-std/Script.sol"; diff --git a/src/Foo.sol b/src/Foo.sol index d69be05..aa592cc 100644 --- a/src/Foo.sol +++ b/src/Foo.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity >=0.8.19; +pragma solidity >=0.8.26 <=0.9.0; contract Foo { function id(uint256 value) external pure returns (uint256) { diff --git a/test/Foo.t.sol b/test/Foo.t.sol index 6b15158..1fcbf44 100644 --- a/test/Foo.t.sol +++ b/test/Foo.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity >=0.8.19 <0.9.0; +pragma solidity >=0.8.26 <0.9.0; import { Test, console } from "forge-std/Test.sol";