Function isWhirlpoolError
- isWhirlpoolError<TProgramErrorCode extends WhirlpoolError>(
error: unknown,
transactionMessage: {
instructions: Record<number, { programAddress: Address }>;
},
code?: TProgramErrorCode,
): error is SolanaError<4615026> & Readonly<
{ context: Readonly<{ code: TProgramErrorCode }> },
> Parameters
- error: unknown
- transactionMessage: { instructions: Record<number, { programAddress: Address }> }
Optional
code: TProgramErrorCode
Returns error is SolanaError<4615026> & Readonly<
{ context: Readonly<{ code: TProgramErrorCode }> },
>