Skip to main content

decode_error

Function decode_error 

Source
pub fn decode_error<'a>(
    data: &'a [u8],
) -> Option<DecodedTempoPrecompileError<'a>>
Expand description

Decodes raw revert bytes into a typed DecodedTempoPrecompileError using the global ERROR_REGISTRY, returning None if the data is shorter than 4 bytes or the selector is unrecognized.