TransactionRevertWithCustomError <ReceiptType>
Hierarchy
- TransactionRevertInstructionError<ReceiptType>
- TransactionRevertWithCustomError
Index
Constructors
constructor
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
code
customErrorArguments
customErrorDecodedSignature
customErrorName
optionaldata
innerError
readonlyname
reason
optionalreceipt
optionalsignature
stack
Methods
toJSON
Returns { code: number; customErrorArguments: Record<string, unknown>; customErrorDecodedSignature: string; customErrorName: string; data: undefined | string; innerError: undefined | Error | Error[]; message: string; name: string; reason: string; receipt: undefined | ReceiptType; signature: undefined | string }
code: number
customErrorArguments: Record<string, unknown>
customErrorDecodedSignature: string
customErrorName: string
data: undefined | string
innerError: undefined | Error | Error[]
message: string
name: string
reason: string
receipt: undefined | ReceiptType
signature: undefined | string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
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