Skip to content

Commit

Permalink
chore: debug faucet script
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Feb 13, 2024
1 parent 2b7bb13 commit 0b62429
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ while [[ ${#rpcAddrs[@]} -gt 0 ]]; do
txfile="/tmp/faucet.$$.json"
trap 'rm -f "$txfile"' EXIT
echo "$body0" | jq ".body.messages += $msg1" > "$txfile"
$TX sign "$txfile" | $TX broadcast --broadcast-mode=block - | tee /dev/stderr | grep -q '^code: 0'
exit $?
if $TX sign "$txfile" | $TX broadcast --broadcast-mode=block - | tee /dev/stderr | grep -q '^code: 0'; then
status=0
else
status=$?
echo "Failed to append $msg1" 1>&2
echo "to $body0" 1>&2
fi
exit $status
;;
gift)
ADDR=$1
Expand Down

0 comments on commit 0b62429

Please sign in to comment.