@@ -295,6 +295,8 @@ fn parse_invoke_instruction(data: &[u8], accounts: &[AccountMeta]) -> Instructio
295295 } else {
296296 vec ! [ ]
297297 } ,
298+ leaf_index : Some ( acc. merkle_context . leaf_index ) ,
299+ root_index : Some ( acc. root_index ) ,
298300 }
299301 } )
300302 . collect ( ) ,
@@ -437,6 +439,8 @@ fn parse_invoke_cpi_instruction(data: &[u8], accounts: &[AccountMeta]) -> Instru
437439 } else {
438440 vec ! [ ]
439441 } ,
442+ leaf_index : Some ( acc. merkle_context . leaf_index ) ,
443+ root_index : Some ( acc. root_index ) ,
440444 }
441445 } )
442446 . collect ( ) ,
@@ -576,6 +580,8 @@ fn parse_invoke_cpi_readonly_instruction(
576580 address : acc. address ,
577581 data_hash : acc. data_hash . to_vec ( ) ,
578582 discriminator : acc. discriminator . to_vec ( ) ,
583+ leaf_index : Some ( acc. merkle_context . leaf_index ) ,
584+ root_index : Some ( acc. root_index ) ,
579585 }
580586 } )
581587 . collect ( ) ,
@@ -713,6 +719,8 @@ fn parse_invoke_cpi_account_info_instruction(
713719 address : account_info. address , // Use address from CompressedAccountInfo
714720 data_hash : input. data_hash . to_vec ( ) ,
715721 discriminator : input. discriminator . to_vec ( ) ,
722+ leaf_index : Some ( input. merkle_context . leaf_index ) ,
723+ root_index : Some ( input. root_index ) ,
716724 } ) ;
717725 }
718726 }
0 commit comments