assertIsSequentialTransactionPlanResult
Asserts that the given transaction plan result is a SequentialTransactionPlanResult.
Parameters
| Parameter | Type | Description |
|---|---|---|
plan | TransactionPlanResult | The transaction plan result to assert. |
Returns
asserts plan is Readonly<{ divisible: boolean; kind: "sequential"; plans: TransactionPlanResult<TransactionPlanResultContext, Readonly<{ kind: "single"; message: TransactionMessage & TransactionMessageWithFeePayer<string>; status: TransactionPlanResultStatus<TransactionPlanResultContext> }>>[] }>
Throws
Throws a SolanaError with code
SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN_RESULT if the result is not a sequential transaction plan result.