Skip to content

Commit 75031c7

Browse files
committed
Remove custom triggering of OnLog tracing hook
1 parent 52e2886 commit 75031c7

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

api/debug.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (d *DebugAPI) TraceCall(
238238
}
239239
}
240240
}
241-
res, err := view.DryCall(
241+
_, err = view.DryCall(
242242
from,
243243
to,
244244
tx.Data,
@@ -250,12 +250,6 @@ func (d *DebugAPI) TraceCall(
250250
return nil, err
251251
}
252252

253-
for _, log := range res.Logs {
254-
if tracer != nil && tracer.OnLog != nil {
255-
tracer.OnLog(log)
256-
}
257-
}
258-
259253
return tracer.GetResult()
260254
}
261255

services/evm/executor.go

-5
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ func (s *BlockExecutor) Run(
106106
res.GasConsumed,
107107
)
108108
}
109-
for _, log := range res.Logs {
110-
if tracer != nil && tracer.OnLog != nil {
111-
tracer.OnLog(log)
112-
}
113-
}
114109
l.Debug().Msg("transaction executed successfully")
115110

116111
return nil

0 commit comments

Comments
 (0)