TransactionRevertWithCustomError <ReceiptType>
Hierarchy
- TransactionRevertInstructionError<ReceiptType>
- TransactionRevertWithCustomError
Index
Constructors
Properties
Accessors
Methods
Constructors
publicconstructor
Type parameters
- ReceiptType = TransactionReceipt
Parameters
reason: string
customErrorName: string
customErrorDecodedSignature: string
customErrorArguments: Record<string, unknown>
optionalsignature: string
optionalreceipt: ReceiptType
optionaldata: string
Returns TransactionRevertWithCustomError<ReceiptType>
Properties
publiccause
publiccode
publiccustomErrorArguments
publiccustomErrorDecodedSignature
publiccustomErrorName
publicoptionaldata
publicreadonlyname
publicreason
publicoptionalreceipt
publicoptionalsignature
publicstack
Accessors
publicinnerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
Methods
publictoJSON
Returns { cause: undefined | Error; code: number; customErrorArguments: Record<string, unknown>; customErrorDecodedSignature: string; customErrorName: string; data: undefined | string; innerError: undefined | Error; message: string; name: string; reason: string; receipt: undefined | ReceiptType; signature: undefined | string }
cause: undefined | Error
code: number
customErrorArguments: Record<string, unknown>
customErrorDecodedSignature: string
customErrorName: string
data: undefined | string
innerError: undefined | Error
message: string
name: string
reason: string
receipt: undefined | ReceiptType
signature: undefined | string
publicstaticconvertToString
Parameters
value: unknown
unquotValue: boolean = false
Returns string
This error is used when a transaction to a smart contract fails and a custom user error (https://blog.soliditylang.org/2021/04/21/custom-errors/) is able to be parsed from the revert reason