diff --git a/sdk/program/src/instruction.rs b/sdk/program/src/instruction.rs index e3adc312b5..4852bfe716 100644 --- a/sdk/program/src/instruction.rs +++ b/sdk/program/src/instruction.rs @@ -218,6 +218,14 @@ impl Instruction { } } + pub fn new_with_bincode( + program_id: Pubkey, + data: &T, + accounts: Vec, + ) -> Self { + Self::new(program_id, data, accounts) + } + pub fn new_with_borsh( program_id: Pubkey, data: &T,