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",
|
"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],
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue