From 356013737d61153570be917c210fc17e92c26fec Mon Sep 17 00:00:00 2001 From: Rubilmax Date: Thu, 11 Jan 2024 08:59:18 +0100 Subject: [PATCH 1/3] fix(config): rename via-ir --- foundry.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foundry.toml b/foundry.toml index f3334ec6..90607e9f 100644 --- a/foundry.toml +++ b/foundry.toml @@ -16,13 +16,13 @@ wrap_comments = true [profile.build] -via-ir = true +via_ir = true test = "/dev/null" script = "/dev/null" [profile.test] -via-ir = false +via_ir = false [profile.test.fuzz] runs = 16384 From bc1863fcd1b410238776cd8690724025fd67389d Mon Sep 17 00:00:00 2001 From: Rubilmax Date: Fri, 12 Jan 2024 13:58:14 +0100 Subject: [PATCH 2/3] fix(config): build via-ir by default --- foundry.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foundry.toml b/foundry.toml index 90607e9f..f09ac506 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,7 +3,8 @@ src = "src" out = "out" test = "test" libs = ["lib"] -optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +via_ir = true +optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimizer runs. [profile.default.fuzz] runs = 4096 @@ -16,7 +17,6 @@ wrap_comments = true [profile.build] -via_ir = true test = "/dev/null" script = "/dev/null" From 3b24a21811635f663b2fa4224dfa1b975f691973 Mon Sep 17 00:00:00 2001 From: Rubilmax Date: Fri, 12 Jan 2024 13:59:17 +0100 Subject: [PATCH 3/3] fix(cmd): update test command --- .github/workflows/foundry.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/foundry.yml b/.github/workflows/foundry.yml index fdaf8a9d..1fea09ed 100644 --- a/.github/workflows/foundry.yml +++ b/.github/workflows/foundry.yml @@ -25,7 +25,7 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 - name: Build contracts via IR & check sizes - run: forge build --force --sizes # don't use compilation cache + run: yarn build:forge --force --sizes # don't use compilation cache env: FOUNDRY_PROFILE: build @@ -43,6 +43,6 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 - name: Run forge tests - run: forge test -vvv + run: yarn test:forge -vvv env: FOUNDRY_PROFILE: test diff --git a/README.md b/README.md index 4a2cc753..421f79b7 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ All audits are stored in the [audits](audits)' folder. ## Getting started -Install dependencies: `forge install` +Install dependencies: `yarn` -Run tests: `forge test` +Run tests: `yarn test:forge` ## Licenses