build: upgrade to Solidity v0.8.19

chore: set "script" in Foundry config
This commit is contained in:
Paul Razvan Berg 2023-02-25 12:40:24 +02:00
parent be349dae78
commit f21a3a6c68
No known key found for this signature in database
GPG Key ID: BCC366159BD63828
6 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,7 @@
"extends": "solhint:recommended", "extends": "solhint:recommended",
"rules": { "rules": {
"code-complexity": ["error", 8], "code-complexity": ["error", 8],
"compiler-version": ["error", ">=0.8.18"], "compiler-version": ["error", ">=0.8.19"],
"func-name-mixedcase": "off", "func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }], "func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 120], "max-line-length": ["error", 120],

View File

@ -5,7 +5,7 @@
"[toml]": { "[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml" "editor.defaultFormatter": "tamasfe.even-better-toml"
}, },
"solidity.compileUsingRemoteVersion": "v0.8.18+commit.87f61d96", "solidity.compileUsingRemoteVersion": "v0.8.19+commit.7dd6d404",
"solidity.formatter": "forge", "solidity.formatter": "forge",
"solidity.linter": "solhint", "solidity.linter": "solhint",
"solidity.packageDefaultDependenciesContractsDirectory": "src", "solidity.packageDefaultDependenciesContractsDirectory": "src",

View File

@ -10,7 +10,8 @@
optimizer = true optimizer = true
optimizer_runs = 10_000 optimizer_runs = 10_000
out = "out" out = "out"
solc = "0.8.18" script = "script"
solc = "0.8.19"
src = "src" src = "src"
test = "test" test = "test"

View File

@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18; pragma solidity >=0.8.19;
import { Script } from "forge-std/Script.sol"; import { Script } from "forge-std/Script.sol";
import { Foo } from "../src/Foo.sol"; import { Foo } from "../src/Foo.sol";

View File

@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18; pragma solidity >=0.8.19;
contract Foo { contract Foo {
function id(uint256 value) external pure returns (uint256) { function id(uint256 value) external pure returns (uint256) {

View File

@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.18; pragma solidity >=0.8.19;
import { PRBTest } from "@prb/test/PRBTest.sol"; import { PRBTest } from "@prb/test/PRBTest.sol";
import { console2 } from "forge-std/console2.sol"; import { console2 } from "forge-std/console2.sol";