retryableData
Classes
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 | Modifier | Type | Default value | Description |
---|---|---|---|---|
ErrorTriggeringParams | static | object | ... | The parameters that should be passed to createRetryableTicket in order to induce a revert with retryable data |
ErrorTriggeringParams.gasLimit | public | BigNumber | ... | - |
ErrorTriggeringParams.maxFeePerGas | public | BigNumber | ... | - |
Methods
tryParseError()
static tryParseError(ethersJsErrorOrData: string | Error | object): 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 | object |
Returns
null
| RetryableData