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

Forking url for foundry #974

Draft
wants to merge 2 commits into
base: foundry
Choose a base branch
from
Draft
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
7 changes: 6 additions & 1 deletion packages/foundry/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ setup-anvil-wallet:
chain: setup-anvil-wallet
anvil

# include variables from .env file if it exists
ifneq (,$(wildcard .env))
include .env
endif

# Start a fork
fork: setup-anvil-wallet
anvil --fork-url ${FORK_URL} --chain-id 31337
anvil --fork-url ${FORKING_URL} --chain-id 31337

# Build the project
build:
Expand Down
2 changes: 1 addition & 1 deletion packages/foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"deploy": "make build-and-deploy RPC_URL=${1:-localhost}",
"deploy:verify": "make deploy-verify RPC_URL=${1:-localhost}",
"flatten": "make flatten",
"fork": "make fork FORK_URL=${1:-mainnet}",
"fork": "make fork",
"format": "make format",
"lint": "make lint",
"test": "forge test",
Expand Down