Skip to content

Commit eeef15f

Browse files
committed
use correct RPC URL when using cast during setup
1 parent 54a1c60 commit eeef15f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

deploy-scenario.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
set -e
44

55
SCENARIO=$1
6+
RPC=${RPC_URL:-http://127.0.0.1:8545}
67

78
rm -rf dev-ctx/
89
mkdir -p dev-ctx/{addresses,labels,priceapi}/31337
910

10-
forge script --rpc-url ${RPC_URL:-http://127.0.0.1:8545} "script/scenarios/$SCENARIO.s.sol" --broadcast --code-size-limit 100000 -vv
11-
cast rpc evm_increaseTime 86400 || true
12-
cast rpc evm_mine || true
11+
forge script --rpc-url "$RPC_URL" "script/scenarios/$SCENARIO.s.sol" --broadcast --code-size-limit 100000 -vv
12+
cast rpc --rpc-url "$RPC_URL" evm_increaseTime 86400 || true
13+
cast rpc --rpc-url "$RPC_URL" evm_mine || true
1314

1415
node chains.js

devland.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RPC_URL=http://127.0.0.1:$PORT bash ./deploy-scenario.sh "$SCENARIO"
2323
echo -------------------------------
2424
echo DEVLAND READY
2525
echo SCENARIO = $SCENARIO
26+
echo RPC URL = http://127.0.0.1:$PORT
2627
echo -------------------------------
2728

2829
wait

0 commit comments

Comments
 (0)