(err: BaseError)
| 34 | import type { ExactPartial } from '../../types/utils.js' |
| 35 | |
| 36 | export function containsNodeError(err: BaseError) { |
| 37 | return ( |
| 38 | err instanceof TransactionRejectedRpcError || |
| 39 | err instanceof InvalidInputRpcError || |
| 40 | (err instanceof RpcRequestError && err.code === ExecutionRevertedError.code) |
| 41 | ) |
| 42 | } |
| 43 | |
| 44 | export type GetNodeErrorParameters = ExactPartial< |
| 45 | SendTransactionParameters<any> |