Module onchain_revert

Module onchain_revert 

Source

ConstantsΒ§

ABI_ERROR_ENUMS πŸ”’
SIGNAL_CONSTANTS πŸ”’

FunctionsΒ§

augment_revert_reason πŸ”’
Return a human-readable error name decoded from the backend’s error response.
extract_log_result_error πŸ”’
Extract the last decoded error name from a LogResult { results: [...] } block.
extract_logdata_error πŸ”’
Parse the LogData receipt before a Revert receipt for logId + discriminant.
extract_panic_reason πŸ”’
Extract a Fuel VM panic reason from PanicInstruction { reason: ... }.
extract_revert_codes πŸ”’
Extract all revert codes from Revert(DIGITS) and Revert { ra: DIGITS }.
format_error πŸ”’
Format a decoded error into the standard output string.
recognize_signal πŸ”’
Identify Fuel VM signal constants from revert codes in text.
variant_to_qualified πŸ”’
Look up a variant name in ABI_ERROR_ENUMS and return the formatted error string. Returns the first match (most specific).

Type AliasesΒ§

ErrorEnum πŸ”’