From 69d88aee93d85ec86931b1ba93967d0d0fdacd12 Mon Sep 17 00:00:00 2001 From: cui Date: Mon, 6 Jul 2026 17:31:08 +0800 Subject: [PATCH] eth/tracers: include log index in erc7562 tracer output (#35200) Populate the Index field on captured logs, matching callTracer behaviour. --- eth/tracers/native/erc7562.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/tracers/native/erc7562.go b/eth/tracers/native/erc7562.go index 0bf80d77b5..d0a2813381 100644 --- a/eth/tracers/native/erc7562.go +++ b/eth/tracers/native/erc7562.go @@ -308,6 +308,7 @@ func (t *erc7562Tracer) OnLog(log1 *types.Log) { Address: log1.Address, Topics: log1.Topics, Data: log1.Data, + Index: hexutil.Uint(log1.Index), Position: hexutil.Uint(len(t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Calls)), } t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Logs = append(t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Logs, l)