Skip to main content

Module revert

Module revert 

Source
Expand description

Decode Error(string) revert strings.

EVM encodes require(cond, "message") as: 0x08c379a0 ++ ABI-encode(string)

This selector is keccak256("Error(string)")[..4].

Constants§

ERROR_STRING_SELECTOR
The 4-byte selector for Error(string).

Functions§

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