Skip to content

Commit 3815471

Browse files
fix new_address_owner assignment array len
1 parent feb437c commit 3815471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

program-libs/compressed-account/src/instruction_data/with_account_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,11 @@ impl<'a> InstructionData<'a> for ZInstructionDataInvokeCpiWithAccountInfo<'a> {
337337
}
338338

339339
fn new_address_owner(&self) -> Vec<Option<Pubkey>> {
340-
vec![Some(self.invoking_program_id); self.new_address_params.len() ]
340+
vec![Some(self.invoking_program_id); self.new_address_params.len()]
341341
}
342342

343343
fn new_address_owner(&self) -> Vec<Option<Pubkey>> {
344-
vec![Some(self.invoking_program_id)]
344+
vec![Some(self.invoking_program_id); self.new_address_params.len()]
345345
}
346346

347347
fn proof(&self) -> Option<Ref<&'a [u8], CompressedProof>> {

0 commit comments

Comments
 (0)