assertIsMessagePackerInstructionPlan
Asserts that the given instruction plan is a MessagePackerInstructionPlan.
Parameters
| Parameter | Type | Description |
|---|---|---|
plan | InstructionPlan | The instruction plan to assert. |
Returns
asserts plan is Readonly<{ getMessagePacker: () => MessagePacker; kind: "messagePacker"; planType: "instructionPlan" }>
Throws
Throws a SolanaError with code
SOLANA_ERROR__INSTRUCTION_PLANS__UNEXPECTED_INSTRUCTION_PLAN if the plan is not a message packer instruction plan.