build: upgrade to Solidity v0.8.19
chore: set "script" in Foundry config
This commit is contained in:
parent
be349dae78
commit
f21a3a6c68
|
@ -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],
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue