File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ First [install foundry](https://getfoundry.sh/) then run:
2020
2121If all goes well, your RPC will be available on the standard ` http://127.0.0.1:8545 ` endpoint.
2222
23+ To use a custom port (e.g., if 8545 is already in use):
24+
25+ PORT=8546 ./devland.sh
26+
27+ You can also deploy scenarios to a different RPC endpoint directly:
28+
29+ RPC_URL=http://127.0.0.1:8546 ./deploy-scenario.sh EulerSwapBasic
30+
2331### Private keys
2432
2533The default is just to use the standard anvil mnemonic. For example this is user 0:
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ SCENARIO=$1
77rm -rf dev-ctx/
88mkdir -p dev-ctx/{addresses,labels,priceapi}/31337
99
10- forge script --rpc-url http://127.0.0.1:8545 " script/scenarios/$SCENARIO .s.sol" --broadcast --code-size-limit 100000
10+ forge script --rpc-url ${RPC_URL :- http:// 127.0.0.1: 8545} " script/scenarios/$SCENARIO .s.sol" --broadcast --code-size-limit 100000
1111cast rpc evm_increaseTime 86400
1212cast rpc evm_mine
1313
Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ function cleanup {
1212trap cleanup EXIT
1313
1414
15- anvil --code-size-limit 100000 &
15+ PORT=${PORT:- 8545}
16+ anvil --port $PORT --code-size-limit 100000 &
1617sleep 1
1718
1819
19- bash ./deploy-scenario.sh " $SCENARIO "
20+ RPC_URL=http://127.0.0.1: $PORT bash ./deploy-scenario.sh " $SCENARIO "
2021
2122
2223echo -------------------------------
You can’t perform that action at this time.
0 commit comments