mirror of
https://github.com/vacp2p/foundry-template.git
synced 2026-01-09 21:17:55 -05:00
chore(compiler): bump min solidity version to 0.8.26 (#30)
Co-authored-by: Andrea Franz <andrea@gravityblast.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Solidity
|
- name: Install Solidity
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/ethereum/solidity/releases/download/v0.8.19/solc-static-linux
|
wget https://github.com/ethereum/solidity/releases/download/v0.8.26/solc-static-linux
|
||||||
chmod +x solc-static-linux
|
chmod +x solc-static-linux
|
||||||
sudo mv solc-static-linux /usr/local/bin/solc
|
sudo mv solc-static-linux /usr/local/bin/solc
|
||||||
|
|
||||||
|
|||||||
@@ -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.19"],
|
"compiler-version": ["error", ">=0.8.26"],
|
||||||
"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],
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
optimizer_runs = 10_000
|
optimizer_runs = 10_000
|
||||||
out = "out"
|
out = "out"
|
||||||
script = "script"
|
script = "script"
|
||||||
solc = "0.8.19"
|
solc = "0.8.26"
|
||||||
src = "src"
|
src = "src"
|
||||||
test = "test"
|
test = "test"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// 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";
|
import { Script } from "forge-std/Script.sol";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: UNLICENSED
|
// 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 { Foo } from "../src/Foo.sol";
|
||||||
import { BaseScript } from "./Base.s.sol";
|
import { BaseScript } from "./Base.s.sol";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//// SPDX-License-Identifier: UNLICENSED
|
//// 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";
|
import { Script } from "forge-std/Script.sol";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: UNLICENSED
|
// SPDX-License-Identifier: UNLICENSED
|
||||||
pragma solidity >=0.8.19;
|
pragma solidity >=0.8.26 <=0.9.0;
|
||||||
|
|
||||||
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.19 <0.9.0;
|
pragma solidity >=0.8.26 <0.9.0;
|
||||||
|
|
||||||
import { Test, console } from "forge-std/Test.sol";
|
import { Test, console } from "forge-std/Test.sol";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user