mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +00:00
eth/tracers: fix testcase 7702_delegate (#32349)
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:
parent
f90eb3e507
commit
e67761ef35
2 changed files with 66 additions and 34 deletions
|
|
@ -109,6 +109,9 @@ func testPrestateTracer(tracerName string, dirPath string, t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to execute transaction: %v", err)
|
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)
|
tracer.OnTxEnd(&types.Receipt{GasUsed: vmRet.UsedGas}, nil)
|
||||||
// Retrieve the trace result and compare against the expected
|
// Retrieve the trace result and compare against the expected
|
||||||
res, err := tracer.GetResult()
|
res, err := tracer.GetResult()
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue