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.