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 |
||
|---|---|---|
| .. | ||
| 4byte.go | ||
| call.go | ||
| call_flat.go | ||
| call_flat_error_mapping_test.go | ||
| call_flat_test.go | ||
| erc7562.go | ||
| gen_account_json.go | ||
| gen_callframe_json.go | ||
| gen_callframewithopcodes_json.go | ||
| gen_flatcallaction_json.go | ||
| gen_flatcallresult_json.go | ||
| keccak256_preimage.go | ||
| keccak256_preimage_test.go | ||
| mux.go | ||
| noop.go | ||
| opcode_counter.go | ||
| prestate.go | ||