Skip to content

Commit e8d8a89

Browse files
committed
fix anvil
1 parent 7643955 commit e8d8a89

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/node-env.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,10 @@ function anvil-dev() {
13421342
fi
13431343
;;
13441344
--build)
1345-
cargo build --manifest-path $FOUNDRY_DIR/Cargo.toml --release -p anvil-polkadot
1345+
set -x
1346+
SQLX_OFFLINE=true cargo build --manifest-path "$FOUNDRY_DIR/Cargo.toml" --release -p anvil-polkadot
1347+
{ set +x; } 2>/dev/null
1348+
shift 1
13461349
;;
13471350
*)
13481351
echo "Unknown argument: $1"
@@ -1410,4 +1413,10 @@ function anvil_stack() {
14101413
# Create new 'servers' window in detached mode
14111414
# Source shell config and run anvil with specified mode
14121415
tmux new-window -d -n servers "$CURRENT_SHELL -c 'source $SHELL_RC; anvil-dev $mode $build_flag; exec \$SHELL'"
1416+
1417+
wait_for_eth_rpc
1418+
1419+
# fund our default address
1420+
cast rpc anvil_setBalance "0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac" "0x3635C9ADC5DEA00000" 2>/dev/null
1421+
14131422
}

0 commit comments

Comments
 (0)