go-ethereum/eth/tracers/native
Daniel Liu e6a7add859 eth/tracers/native: fix parity mapping for wrapped max code size errors
Problem:

- flatCallTracer only matched the exact string "max code size exceeded".
- EVM now emits wrapped errors (for example, "max code size exceeded: code size ... limit ..."), causing parity error mapping to miss.

Solution:

- Update convertErrorToParity matching order: exact match first, then unwrap base error by splitting at the first colon, then keep existing prefix-based mappings.
- Add call_flat_error_mapping_test.go to cover exact match, wrapped match, prefix match, and unknown error passthrough.

Impact:

- Restores parity compatibility for wrapped max code size errors in flat call tracer output.
- Preserves existing mapping behavior for known and unknown error messages.

Validation:

- go test ./eth/tracers/native
2026-03-22 09:27:20 +08:00
..
4byte.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
call.go eth/tracers/native: add index to callTracer log (#33629) 2026-01-28 13:32:27 +01:00
call_flat.go eth/tracers/native: fix parity mapping for wrapped max code size errors 2026-03-22 09:27:20 +08:00
call_flat_error_mapping_test.go eth/tracers/native: fix parity mapping for wrapped max code size errors 2026-03-22 09:27:20 +08:00
call_flat_test.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
erc7562.go eth/tracers/native: include SWAP16 in default ignored opcodes (#33381) 2025-12-10 15:13:47 +08:00
gen_account_json.go eth/tracers: Adds codeHash to prestateTracer's response (#32391) 2025-08-13 13:51:38 +02:00
gen_callframe_json.go eth/tracers/native: set created address to nil in case of failure (#26779) 2023-03-07 14:39:11 +01:00
gen_callframewithopcodes_json.go eth/tracers/native: add erc7562 tracer (#31006) 2025-05-20 15:38:33 +02:00
gen_flatcallaction_json.go eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377) 2023-02-28 13:54:37 +03:30
gen_flatcallresult_json.go eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377) 2023-02-28 13:54:37 +03:30
keccak256_preimage.go eth/tracers/native: add keccak256preimage tracer (#32569) 2025-09-26 18:05:27 +02:00
keccak256_preimage_test.go eth/tracers/native: add keccak256preimage tracer (#32569) 2025-09-26 18:05:27 +02:00
mux.go cmd/evm: add --opcode.count flag to t8n (#33800) 2026-02-17 20:42:53 +01:00
noop.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
opcode_counter.go cmd/evm: add --opcode.count flag to t8n (#33800) 2026-02-17 20:42:53 +01:00
prestate.go cmd/workload, eth/tracers/native: introduce state proof tests (#32247) 2025-12-15 08:35:02 +01:00