Skip to content

Commit

Permalink
further fix TestPrestateTracingSimple
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Jan 28, 2025
1 parent 9725b9d commit 8466b01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system_tests/debugapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ func TestPrestateTracingSimple(t *testing.T) {
gas := arbmath.BigMulByUint(receipt.EffectiveGasPrice, receipt.GasUsed)
expBalance = arbmath.BigSub(expBalance, gas)
if !arbmath.BigEquals(result.Post[sender].Balance.ToInt(), expBalance) {
Fatal(t, "Unexpected final balance of sender ", "expected: ", expBalance, " got: ", result.Post[sender].Balance.ToInt(), " diff: ", arbmath.BigSub(result.Post[sender].Balance.ToInt(), expBalance), " gas: ", receipt.GasUsed)
Fatal(t, "Unexpected final balance of sender")
}
onchain, err := builder.L2.Client.BalanceAt(ctx, sender, receipt.BlockNumber)
Require(t, err)
if !arbmath.BigEquals(result.Post[sender].Balance.ToInt(), onchain) {
Fatal(t, "Final balance of sender does not fit chain")
}
if !arbmath.BigEquals(result.Post[receiver].Balance.ToInt(), value) {
Fatal(t, "Unexpected final balance of receiver")
Expand Down

0 comments on commit 8466b01

Please sign in to comment.