mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
eth/tracers: include log index in erc7562 tracer output (#35200)
Populate the Index field on captured logs, matching callTracer behaviour.
This commit is contained in:
parent
7c1959b306
commit
69d88aee93
1 changed files with 1 additions and 0 deletions
|
|
@ -308,6 +308,7 @@ func (t *erc7562Tracer) OnLog(log1 *types.Log) {
|
||||||
Address: log1.Address,
|
Address: log1.Address,
|
||||||
Topics: log1.Topics,
|
Topics: log1.Topics,
|
||||||
Data: log1.Data,
|
Data: log1.Data,
|
||||||
|
Index: hexutil.Uint(log1.Index),
|
||||||
Position: hexutil.Uint(len(t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Calls)),
|
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)
|
t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Logs = append(t.callstackWithOpcodes[len(t.callstackWithOpcodes)-1].Logs, l)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue