go-ethereum/eth/tracers
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
..
internal core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
js core: miner: reduce allocations in block building (#33375) 2026-02-03 08:19:16 +01:00
live eth/tracers: fix supply tracer uncle accounting (#31882) 2025-08-26 15:44:16 +02:00
logger eth/tracers: fix accessList StorageKeys return null (#33976) 2026-03-11 11:46:49 +08:00
native eth/tracers/native: fix parity mapping for wrapped max code size errors 2026-03-22 09:27:20 +08:00
api.go core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
api_test.go core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
dir.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
live.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
tracers_test.go core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
tracker.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00
tracker_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00