Skip to main content

decode_custom_error

Function decode_custom_error 

Source
pub fn decode_custom_error(
    data: &[u8],
    registry: &dyn ErrorSignatureRegistry,
) -> Option<ErrorKind>
Expand description

Try to decode custom error data against a known registry.

Returns Some(ErrorKind::CustomError { .. }) if the selector matches a registry entry and the ABI decode succeeds. Returns None otherwise.