Skip to content

Commit

Permalink
fix: use the basic calculator to compare very wei amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Sep 19, 2024
1 parent ad645a5 commit a9a12e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function verify_native_token_balance() {
local expected_final_balance_wei=$(echo "$initial_balance_wei + $amount_wei" | bc)

# Check if final_balance matches the expected final balance
if [ "$final_balance_wei" -eq "$expected_final_balance_wei" ]; then
if [ "$(echo "$final_balance_wei == $expected_final_balance_wei" | bc)" -eq 1 ]; then
echo "✅ Balance verification successful: final balance is correct."
else
echo "❌ Balance verification failed: expected $expected_final_balance_wei but got $final_balance_wei."
Expand Down

0 comments on commit a9a12e1

Please sign in to comment.