Skip to main content

decode_error_string

Function decode_error_string 

Source
pub fn decode_error_string(data: &[u8]) -> Option<String>
Expand description

Try to decode the revert data as an Error(string) payload.

Returns Some(message) on success, None if the data doesn’t match the expected format.