Skip to main content

decode_error_string

Function decode_error_string 

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

Decode a Solidity Error(string) revert payload to its message. Returns None for anything that isn’t that exact ABI shape (bare reasonless revert, Panic(uint256), …).