Module: dataEntities/retryableData
RetryableDataTools
Tools for parsing retryable data from errors. When calling createRetryableTicket on Inbox.sol special values can be passed for gasLimit and maxFeePerGas. This causes the call to revert with the info needed to estimate the gas needed for a retryable ticket using L1ToL2GasPriceEstimator.
Properties
Property | Type | Description |
---|---|---|
static ErrorTriggeringParams | object | The parameters that should be passed to createRetryableTicket in order to induce a revert with retryable data |
ErrorTriggeringParams.gasLimit | BigNumber | - |
ErrorTriggeringParams.maxFeePerGas | BigNumber | - |
Methods
tryParseError()
static tryParseError(ethersJsErrorOrData): null | RetryableData
Try to parse a retryable data struct from the supplied ethersjs error, or any explicitly supplied error data
Parameters
Parameter | Type | Description |
---|---|---|
ethersJsErrorOrData | string | Error | {errorData : string ;} |
Returns
null
| RetryableData