fn status_from_frame(frame: &CallFrame) -> InstructionResultExpand description
Maps a callTracer frame to the InstructionResult used for the rendered [status] label.
callTracer only exposes a coarse, human-readable error string (plus an optional
revert_reason), not a machine status code, so we recognise the two halts geth and reth report
reliably (an explicit revert and running out of gas) and fall back to
InstructionResult::Revert for anything else. push_frame preserves the frame’s error /
revert_reason text in the trace output, and the call is coloured by CallTrace::success, so
an imperfect status never hides a failure or the original error message.