Skip to main content

Module decoder

Module decoder 

Source
Expand description

EvmErrorDecoder — the top-level EVM error decoder.

Decode priority:

  1. Empty data → ErrorKind::Empty
  2. 0x08c379a0 prefix → ErrorKind::RevertString (Error(string))
  3. 0x4e487b71 prefix → ErrorKind::Panic (Panic(uint256))
  4. Known 4-byte selector in registry → ErrorKind::CustomError
  5. Fallback → ErrorKind::RawRevert

Structs§

EvmErrorDecoder
EVM error decoder with a bundled signature registry.