eth/tracers: fix testcase 7702_delegate (#32349)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

Fixes a prestateTracer test case covering 7702 delegation.

---------

Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
This commit is contained in:
formless 2025-08-28 03:40:55 +08:00 committed by GitHub
parent f90eb3e507
commit e67761ef35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 66 additions and 34 deletions

View file

@ -109,6 +109,9 @@ func testPrestateTracer(tracerName string, dirPath string, t *testing.T) {
if err != nil {
t.Fatalf("failed to execute transaction: %v", err)
}
if vmRet.Failed() {
t.Logf("(warn) transaction failed: %v", vmRet.Err)
}
tracer.OnTxEnd(&types.Receipt{GasUsed: vmRet.UsedGas}, nil)
// Retrieve the trace result and compare against the expected
res, err := tracer.GetResult()

File diff suppressed because one or more lines are too long