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";