Options
All
  • Public
  • Public/Protected
  • All
Menu

This type represents a decoding of the return data as a revert message. For forward-compatibility, we do not assume that the revert message is a string.

Hierarchy

  • RevertMessageDecoding

Index

Properties

abi: ErrorEntry

The ABI entry for the error that was thrown. You can use this to extract the name, for instance. This may be spoofed for built-in types of errors.

arguments: AbiArgument[]

The list of decoded arguments passed to revert(); currently, this will always contain just a single string.

decodingMode: DecodingMode

The decoding mode that was used; see the README for more on these.

definedIn?: ContractType

The class of the contract that (according to this decoding) defined the error type, as a Format.Types.ContractType. This will be null if the error was defined outside of the contract or it's one of the builtin Error(string) or Panic(uint) types. May be omitted if we can't determine it, as may occur in ABI mode.

interpretations: {}

Further information about how the decoding may be interpreted. Note that interpretations may be added by things that use @truffle/codec, such as @truffle/decoder, rather than by

truffle/codec

itself. See individual interpretations for details. (Currently there are none for this type.)

Type declaration

    kind: "revert"

    The kind of decoding; indicates that this is a RevertMessageDecoding.

    status: false

    Indicates that this kind of decoding indicates an unsuccessful return.

    Generated using TypeDoc