From 18fd45078ce6483f124ada86756b724d4dfbe18f Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Wed, 18 Feb 2026 20:27:10 +0000 Subject: [PATCH 1/4] feat: format inputs and add CI defaults --- foundry.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 25b918f..2f3b732 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,4 +3,9 @@ src = "src" out = "out" libs = ["lib"] -# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options +[fmt] +sort_imports = true + +[profile.ci] +deny_warnings = true # Why not always: sometimes you just want to code and see what comes out +fuzz.seed = '0' # It makes CI reproducible, but still on a local machine it tries different parameters and so we can see edge cases if needed. From 710c5851d82974aaf104af19ea7f847dba48a155 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Wed, 18 Feb 2026 20:37:14 +0000 Subject: [PATCH 2/4] chore: format solidity files --- script/Counter.s.sol | 2 +- test/Counter.t.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/Counter.s.sol b/script/Counter.s.sol index f01d69c..3983ed4 100644 --- a/script/Counter.s.sol +++ b/script/Counter.s.sol @@ -1,8 +1,8 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; -import {Script} from "forge-std/Script.sol"; import {Counter} from "../src/Counter.sol"; +import {Script} from "forge-std/Script.sol"; contract CounterScript is Script { Counter public counter; diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 4831910..8e2817e 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -1,8 +1,8 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; -import {Test} from "forge-std/Test.sol"; import {Counter} from "../src/Counter.sol"; +import {Test} from "forge-std/Test.sol"; contract CounterTest is Test { Counter public counter; From ce1ce2a43abb708f0eee7aa5badee04043acdd88 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Thu, 19 Feb 2026 17:58:46 +0000 Subject: [PATCH 3/4] fix: fix warning on deprecated field --- foundry.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 2f3b732..e33e38e 100644 --- a/foundry.toml +++ b/foundry.toml @@ -7,5 +7,5 @@ libs = ["lib"] sort_imports = true [profile.ci] -deny_warnings = true # Why not always: sometimes you just want to code and see what comes out +deny = "warnings" # Why not always: sometimes you just want to code and see what comes out fuzz.seed = '0' # It makes CI reproducible, but still on a local machine it tries different parameters and so we can see edge cases if needed. From c3f3247b1ba3b008e9ab82a6f6a29ae4773efe28 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Thu, 19 Feb 2026 18:04:17 +0000 Subject: [PATCH 4/4] docs: hardcode the version of solidity --- README.md | 1 + foundry.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index c45d07b..72ce9fd 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,5 @@ The following operations need to be performed after this repository has been cre - Unckeck "Allow merge commits" option - Check "Allow auto-merge" option - [ ] Run `forge install` to install the dependencies. This will create a new `foundry.lock` file which you should commit to the project +- [ ] Make sure you use the [latest version of Solidity](https://github.com/argotorg/solidity/releases) by updating the `solc` version in `foundry.toml` - [ ] Once all entries in this list are checked, delete this section from the readme \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index e33e38e..751f7be 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,6 +2,7 @@ src = "src" out = "out" libs = ["lib"] +solc = "0.8.33" # See latest release at: https://github.com/argotorg/solidity/releases [fmt] sort_imports = true