mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-26 09:49:28 +00:00
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 |
||
|---|---|---|
| .. | ||
| internal | ||
| js | ||
| live | ||
| logger | ||
| native | ||
| api.go | ||
| api_test.go | ||
| dir.go | ||
| live.go | ||
| tracers_test.go | ||
| tracker.go | ||
| tracker_test.go | ||