File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
program-libs/compressed-account/src/instruction_data
programs/system/src/cpi_context Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ impl<'a> InstructionData<'a> for ZInstructionDataInvokeCpiWithAccountInfo<'a> {
337
337
}
338
338
339
339
fn new_address_owner ( & self ) -> Vec < Option < Pubkey > > {
340
- vec ! [ Some ( self . invoking_program_id) ]
340
+ vec ! [ Some ( self . invoking_program_id) ; self . new_address_params . len ( ) ]
341
341
}
342
342
343
343
fn proof ( & self ) -> Option < Ref < & ' a [ u8 ] , CompressedProof > > {
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ impl<'a> InstructionData<'a> for ZInstructionDataInvoke<'a> {
475
475
}
476
476
477
477
fn new_address_owner ( & self ) -> Vec < Option < Pubkey > > {
478
- vec ! [ None ]
478
+ vec ! [ None ; self . new_address_params . len ( ) ]
479
479
}
480
480
481
481
fn input_accounts ( & self ) -> & [ impl InputAccount < ' a > ] {
@@ -604,7 +604,7 @@ impl<'a> InstructionData<'a> for ZInstructionDataInvokeCpi<'a> {
604
604
}
605
605
606
606
fn new_address_owner ( & self ) -> Vec < Option < Pubkey > > {
607
- vec ! [ None ]
607
+ vec ! [ None ; self . new_address_params . len ( ) ]
608
608
}
609
609
610
610
fn output_accounts ( & self ) -> & [ impl OutputAccount < ' a > ] {
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ impl<'a> ZCpiContextAccount<'a> {
63
63
self . in_accounts . clear ( ) ;
64
64
self . out_accounts . clear ( ) ;
65
65
* self . output_data_len = 0 . into ( ) ;
66
+ self . output_data . clear ( ) ;
67
+ self . remaining_data . fill ( 0 ) ;
66
68
}
67
69
68
70
pub fn store_data <
You can’t perform that action at this time.
0 commit comments