Skip to content

Commit

Permalink
fix address extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 9, 2024
1 parent 3fa5fca commit 20f24c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/babylon-integration/utils/teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source "./common.sh"
CONSUMER_FP_KEYRING_DIR=/home/finality-provider/.fpd
KEYRING_FILENAME=$(ls $CONSUMER_FP_KEYRING_DIR/keyring-test | grep '\.address$' | sed 's/\.address$//')
echo "Keyring filename: $KEYRING_FILENAME"
CONSUMER_FP_ADDRESS=$(babylond keys parse "$KEYRING_FILENAME" | grep -o '^[^- ]*' | head -n 1)
CONSUMER_FP_ADDRESS=$(babylond keys parse "$KEYRING_FILENAME" --output json | jq -r '.formats[0]')
echo "Consumer FP address: $CONSUMER_FP_ADDRESS"

# Get the prefunded key address
Expand Down Expand Up @@ -35,7 +35,7 @@ fi
# Otherwise, send out funds to prefunded key
# Reserve 0.001 bbn = 1000 ubbn for gas
AMOUNT_TO_SEND=$((CONSUMER_FP_BALANCE - TRANSFER_GAS_COST))
echo "Sending funds to prefunded key..."
echo "Sending $AMOUNT_TO_SEND ubbn to prefunded key..."
SEND_TX_HASH=$(babylond tx bank send "$CONSUMER_FP_ADDRESS" "$PREFUNDED_ADDRESS" "$AMOUNT_TO_SEND"ubbn \
--keyring-dir "$CONSUMER_FP_KEYRING_DIR" \
--chain-id $BABYLON_CHAIN_ID \
Expand Down

0 comments on commit 20f24c8

Please sign in to comment.