Skip to content

Commit

Permalink
feat: update justfile with custom solc (Uniswap#418)
Browse files Browse the repository at this point in the history
For folks who dont want to update their global env they can use `just
test` or `just build` which sets solc using cli arg
  • Loading branch information
marktoda authored and hyunchel committed Feb 21, 2024
1 parent 2811fe5 commit 2f66c48
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
solc_file := if os() == "macos" { "./bin/solc-mac" } else { "./bin/solc-static-linux" }

test: test-forge
prep: fix snapshots
snapshots: snapshots-forge

test-forge: install-forge build-forge
forge test
forge test --use {{ solc_file }}

build-forge: install-forge
forge build

snapshots-forge: install-forge test-forge
FOUNDRY_FUZZ_SEED=0x4444 forge snapshot
forge build --use {{ solc_file }}

install-forge:
forge install
Expand Down

0 comments on commit 2f66c48

Please sign in to comment.