pub(crate) fn augment_revert_reason(
message: &str,
reason: &str,
receipts: Option<&Value>,
) -> StringExpand description
Return a human-readable error name decoded from the backend’s error response.
Tries multiple strategies in priority order:
- Extract the error variant from the backend’s decoded
LogResult - Parse the
LogDatareceipt (logId + discriminant) from embedded receipts - Recognize Fuel VM signal constants
- Extract
PanicInstructionreason - Extract
and error:summary - Truncate raw reason as last resort