From 76eeff1a4baf592ee4c24893e78c6d3da58f895c Mon Sep 17 00:00:00 2001 From: Dante Sanchez Date: Sun, 21 Apr 2024 22:09:12 -0400 Subject: [PATCH] relayer wallet --- tests/gaia-v16/test_ibc_fee.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gaia-v16/test_ibc_fee.sh b/tests/gaia-v16/test_ibc_fee.sh index ae01020e..644f8fe0 100755 --- a/tests/gaia-v16/test_ibc_fee.sh +++ b/tests/gaia-v16/test_ibc_fee.sh @@ -1,6 +1,6 @@ #!/bin/bash -balance_before=$($CHAIN_BINARY q bank balances $RELAYER_WALLET --home $HOME_1 -o json | jq -r --arg DENOM "$DENOM" '.balances[] | select(.denom == $DENOM).amount') +balance_before=$($CHAIN_BINARY q bank balances $WALLET_RELAYER --home $HOME_1 -o json | jq -r --arg DENOM "$DENOM" '.balances[] | select(.denom == $DENOM).amount') $RELAYER --json create channel --order unordered --a-chain $CHAIN_ID --a-port transfer --b-port transfer --a-connection connection-0 --channel-version "{\"fee_version\":\"ics29-1\",\"app_version\":\"ics20-1\"}" @@ -10,7 +10,7 @@ sequence=$($CHAIN_BINARY q tx $txhash --home $HOME_1 -o json | jq -r '.events[] $CHAIN_BINARY tx ibc-fee pay-packet-fee transfer channel-0 $sequence --recv-fee 123uatom --ack-fee 456uatom --timeout-fee 789uatom --from $WALLET_1 --gas $GAS --gas-prices $GAS_PRICE$DENOM --gas-adjustment $GAS_ADJUSTMENT --home $HOME_1 -y sleep 30 -balance_after=$($CHAIN_BINARY q bank balances $RELAYER_WALLET --home $HOME_1 -o json | jq -r --arg DENOM "$DENOM" '.balances[] | select(.denom == $DENOM).amount') +balance_after=$($CHAIN_BINARY q bank balances $WALLET_RELAYER --home $HOME_1 -o json | jq -r --arg DENOM "$DENOM" '.balances[] | select(.denom == $DENOM).amount') difference=$(echo "$balance_after - $balance_before" | bc) echo "Difference: ${difference}$DENOM" \ No newline at end of file