feat(l1): implement 4byteTracer#6704
Conversation
… tracing Add support for the `4byteTracer` tracer type which records all function selectors (first 4 bytes of calldata) and calldata sizes for every call in a transaction. Returns a map of "0xSELECTOR-SIZE" -> count. Implemented by post-processing the existing call tracer output, walking the call trace tree to extract selector information from each frame.
|
Lines of code reportTotal lines added: Detailed view |
Trace a real transfer with 4byteTracer and assert the response is an empty selector map (no calldata in a plain transfer).
Summary
4byteTracertracer type fordebug_traceTransactionand block tracing endpoints"0xSELECTOR-SIZE" → count(e.g.{"0xa9059cbb-68": 1})Closes part of #6572