Skip to content

Commit

Permalink
fix gas cost
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 12, 2024
1 parent bb5bb5c commit f74b02a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/babylon-integration/utils/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CONSUMER_FP_BALANCE=$(babylond query bank balances "$CONSUMER_FP_ADDRESS" \
echo "Consumer FP balance: $CONSUMER_FP_BALANCE"

# If balance is less than gas transfer cost, don't send funds
TRANSFER_GAS_COST=1000
TRANSFER_GAS_COST=10000
if [ "$CONSUMER_FP_BALANCE" -lt "$TRANSFER_GAS_COST" ]; then
echo "Consumer FP balance is less than gas transfer cost, skipping funds transfer"
exit 0
Expand All @@ -46,9 +46,6 @@ SEND_TX_HASH=$(babylond tx bank send \
--keyring-backend test \
--chain-id $BABYLON_CHAIN_ID \
--node $BABYLON_RPC_URL \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.2ubbn \
--output json -y \
| jq -r '.txhash')

Expand Down

0 comments on commit f74b02a

Please sign in to comment.