Fix bridge deployment dir path usage

This commit is contained in:
Prathamesh Musale 2024-07-23 11:47:47 +05:30
parent 03f4884018
commit ddbbe49aa6

View File

@ -22,12 +22,7 @@ mkdir -p $STAGE1_GENESIS_DIR
# Fetch ETH account holdings from the bridge node
# Run the nitro-rpc-client command and process the output with jq
cd $BRIDGE_DEPLOYMENT_DIR
eth_account_holdings=$(laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4006 -h nitro-bridge" | jq -s '[.[] | {nitro_address: .Balance.Them, balance: .Balance.TheirBalance}]')
# Change back to the original directory
cd -
eth_account_holdings=$(laconic-so deployment --dir $BRIDGE_DEPLOYMENT_DIR exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4006 -h nitro-bridge" | jq -s '[.[] | {nitro_address: .Balance.Them, balance: .Balance.TheirBalance}]')
echo "Fetched Ethereum account holdings"