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 25b918f..751f7be 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,5 +2,11 @@ src = "src" out = "out" libs = ["lib"] +solc = "0.8.33" # See latest release at: https://github.com/argotorg/solidity/releases -# 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" # 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. 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;