Understand Events and Call Order in Traces
mainIn struct-log call trees, events (LOG0–LOG4) are included in each node's events list.
- Ordering:
event.positionindicates the number of child calls preceding that event in its parent. This allows for interleaving events and calls in execution order. - Log Inclusion: To include logs in a
callTracerrequest, use{"tracer": "callTracer", "tracerConfig": {"withLog": true}}. - Reverted Logs: Struct logs include attempted emissions even if the execution reverts. However, some clients might discard reverted logs in their
callTraceroutput. - LOG0 Specifics:
LOG0events have no topics and theirselectorisNone.