From 26efe7ddca61d6bd77ee3fb723ea92e58faeae0f Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Sat, 17 Jan 2026 16:14:10 +0100 Subject: [PATCH] eth/tracers/native: add index to call log --- eth/tracers/native/call.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go index c2247d1ce4..076a55c639 100644 --- a/eth/tracers/native/call.go +++ b/eth/tracers/native/call.go @@ -44,6 +44,7 @@ type callLog struct { Data hexutil.Bytes `json:"data"` // Position of the log relative to subcalls within the same trace // See https://github.com/ethereum/go-ethereum/pull/28389 for details + Index hexutil.Uint `json:"index"` Position hexutil.Uint `json:"position"` } @@ -250,6 +251,7 @@ func (t *callTracer) OnLog(log *types.Log) { Address: log.Address, Topics: log.Topics, Data: log.Data, + Index: hexutil.Uint(log.Index), Position: hexutil.Uint(len(t.callstack[len(t.callstack)-1].Calls)), } t.callstack[len(t.callstack)-1].Logs = append(t.callstack[len(t.callstack)-1].Logs, l)