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",
"rules": {
"code-complexity": ["error", 8],
"compiler-version": ["error", ">=0.8.18"],
"compiler-version": ["error", ">=0.8.19"],
"func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 120],

View File

@ -5,7 +5,7 @@
"[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.linter": "solhint",
"solidity.packageDefaultDependenciesContractsDirectory": "src",

View File

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

View File

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

View File

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

View File

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