Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): rename via-ir #120

Merged
merged 4 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions foundry.toml
Rubilmax marked this conversation as resolved.
Show resolved Hide resolved
Rubilmax marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,13 +17,12 @@ wrap_comments = true


[profile.build]
via-ir = true
test = "/dev/null"
script = "/dev/null"


[profile.test]
via-ir = false
via_ir = false

[profile.test.fuzz]
runs = 16384
Expand Down