diff --git a/test/helpers/common.bash b/test/helpers/common.bash index 19970a1b..a25290d8 100644 --- a/test/helpers/common.bash +++ b/test/helpers/common.bash @@ -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."