Skip to content

Commit

Permalink
feat: update justfile with custom solc (#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 zhongeric committed Dec 14, 2023
1 parent fb68e18 commit 874115d
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 874115d

Please sign in to comment.