Skip to content

Commit

Permalink
test: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Sep 19, 2024
1 parent 2ff8991 commit c5c56f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions test/bridge-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ setup() {
local gas_token_final_sender_balance=$(echo "$output" |
tail -n 1 |
awk '{print $1}')
local expected_balance=$(
echo "$gas_token_init_sender_balance + $wei_amount" |
bc |
awk '{print $1}'
)
local expected_balance=$(echo "$gas_token_init_sender_balance + $wei_amount" |
bc |
awk '{print $1}')

echo "Sender balance ($sender_addr) (gas token L1): $gas_token_final_sender_balance" >&3
assert_equal "$gas_token_final_sender_balance" "$expected_balance"
Expand Down
4 changes: 3 additions & 1 deletion test/helpers/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,11 @@ function verify_native_token_balance() {
# Trim 'ether' from ether_amount if it exists
ether_amount=$(echo "$ether_amount" | sed 's/ether//')
local amount_wei=$(cast --to-wei "$ether_amount")
# TODO: REMOVE
echo "Initial wei balance $initial_balance_wei, Wei amount: $amount_wei" >&3

# Get final balance in wei (after the operation)
local final_balance_wei=$(cast balance "$account" --rpc-url "$rpc_url")
local final_balance_wei=$(cast balance "$account" --rpc-url "$rpc_url" | awk '{print $1}')

# Calculate expected final balance (initial_balance + amount)
local expected_final_balance_wei=$((initial_balance_wei + amount_wei))
Expand Down

0 comments on commit c5c56f0

Please sign in to comment.