diff --git a/.env b/.env index 39470adf1..8ee727902 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ FOUNDRY_FUZZ_SEED=0x4444 if [[ "$OSTYPE" == "linux-gnu"* ]]; then - FOUNDRY_SOLC="./bin/solc-static-linux" + export FOUNDRY_SOLC="./bin/solc-static-linux" elif [[ "$OSTYPE" == "darwin"* ]]; then - FOUNDRY_SOLC="./bin/solc-mac" + export FOUNDRY_SOLC="./bin/solc-mac" fi diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bd257a36e..951d3d9ac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,9 +50,17 @@ Run `source .env` to set FOUNDRY_SOLC to the correct solc binary. `forge build` to get contract artifacts and dependencies for forge +If after running `source .env`, you continue to get the error `Function "tload" not found.` try running + +On MacOS: +`forge build --use ./bin/solc-mac` + +On Linux: +`forge build --use ./bin/solc-static-linux` + ## Tests -`forge snapshot`to update the forge gas snapshots. Note these must use a static fuzz seed, so please `source .env`, use `FOUNDRY_FUZZ_SEED=0x4444`, or use `just snapshots` when running forge snapshots. +`forge snapshot` to update the forge gas snapshots. Note these must use a static fuzz seed, so please run `source .env`, use `FOUNDRY_FUZZ_SEED=0x4444`, or use `just snapshots` when running forge snapshots. `forge test` to run forge tests diff --git a/foundry.toml b/foundry.toml index 0cb4bbe1c..7726681e0 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,5 +1,4 @@ [profile.default] -solc_version = '0.8.22' optimizer_runs = 800 via_ir = false ffi = true