assertIsSingleTransactionPlan
Asserts that the given transaction plan is a SingleTransactionPlan.
Parameters
| Parameter | Type | Description |
|---|---|---|
plan | TransactionPlan | The transaction plan to assert. |
Returns
asserts plan is Readonly<{ kind: "single"; message: TransactionMessage & TransactionMessageWithFeePayer<string>; planType: "transactionPlan" }>
Throws
Throws a SolanaError with code
SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_TRANSACTION_PLAN if the plan is not a single transaction plan.