Skip to content

Commit

Permalink
fix: trim the receiver_balance var
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Sep 18, 2024
1 parent d252963 commit 9600d4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/basic-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,12 @@ setup() {
# Assert that balance of gas token (on the L1) is correct
run queryContract "$l1_rpc_url" "$gas_token_addr" "$balance_of_fn_sig" "$receiver"
assert_success
local receiver_balance=$(echo "$output" | tail -n 1)
local receiver_balance=$(echo "$output" |
tail -n 1 |
awk '{print $1}')
local expected_balance=$(echo "$initial_receiver_balance + $wei_amount" |
bc | sed 's/ .*//')
bc |
awk '{print $1}')

echo "Receiver balance: $receiver_balance" >&3
assert_equal "$receiver_balance" "$expected_balance"
Expand Down

0 comments on commit 9600d4d

Please sign in to comment.