66 } ,
77 pinocchio:: {
88 account_info:: AccountInfo ,
9- entrypoint:: deserialize_into ,
9+ entrypoint:: deserialize ,
1010 hint:: likely,
1111 no_allocator, nostd_panic_handler,
1212 program_error:: { ProgramError , ToStr } ,
@@ -88,7 +88,7 @@ pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
8888 /// previous accounts have zero data.
8989 ///
9090 /// This value is adjusted before it is used.
91- const IX3_INSTRUCTION_DATA_LEN_OFFSET : usize = 0x7a28 ;
91+ const IX3_INSTRUCTION_DATA_LEN_OFFSET : usize = 0x7a78 ;
9292
9393 /// Align an address to the next multiple of 8.
9494 #[ inline( always) ]
@@ -202,10 +202,10 @@ pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
202202 const UNINIT : MaybeUninit < AccountInfo > = MaybeUninit :: < AccountInfo > :: uninit ( ) ;
203203 let mut accounts = [ UNINIT ; { MAX_TX_ACCOUNTS } ] ;
204204
205- let ( count, instruction_data) = deserialize_into ( input, & mut accounts) ;
205+ let ( _ , count, instruction_data) = deserialize ( input, & mut accounts) ;
206206
207207 match process_instruction (
208- from_raw_parts ( accounts. as_ptr ( ) as _ , count as usize ) ,
208+ from_raw_parts ( accounts. as_ptr ( ) as _ , count) ,
209209 instruction_data,
210210 ) {
211211 Ok ( ( ) ) => SUCCESS ,
@@ -331,12 +331,12 @@ pub(crate) fn inner_process_instruction(
331331
332332 process_burn_checked ( accounts, instruction_data)
333333 }
334- // 16 - InitializeAccount2
335- 16 => {
334+ // 17 - SyncNative
335+ 17 => {
336336 #[ cfg( feature = "logging" ) ]
337- pinocchio:: msg!( "Instruction: InitializeAccount2 " ) ;
337+ pinocchio:: msg!( "Instruction: SyncNative " ) ;
338338
339- process_initialize_account2 ( accounts, instruction_data )
339+ process_sync_native ( accounts)
340340 }
341341 // 18 - InitializeAccount3
342342 18 => {
@@ -352,6 +352,13 @@ pub(crate) fn inner_process_instruction(
352352
353353 process_initialize_mint2 ( accounts, instruction_data)
354354 }
355+ // 22 - InitializeImmutableOwner
356+ 22 => {
357+ #[ cfg( feature = "logging" ) ]
358+ pinocchio:: msg!( "Instruction: InitializeImmutableOwner" ) ;
359+
360+ process_initialize_immutable_owner ( accounts)
361+ }
355362 d => inner_process_remaining_instruction ( accounts, instruction_data, d) ,
356363 }
357364}
@@ -424,12 +431,12 @@ fn inner_process_remaining_instruction(
424431
425432 process_mint_to_checked ( accounts, instruction_data)
426433 }
427- // 17 - SyncNative
428- 17 => {
434+ // 16 - InitializeAccount2
435+ 16 => {
429436 #[ cfg( feature = "logging" ) ]
430- pinocchio:: msg!( "Instruction: SyncNative " ) ;
437+ pinocchio:: msg!( "Instruction: InitializeAccount2 " ) ;
431438
432- process_sync_native ( accounts)
439+ process_initialize_account2 ( accounts, instruction_data )
433440 }
434441 // 19 - InitializeMultisig2
435442 19 => {
@@ -445,13 +452,6 @@ fn inner_process_remaining_instruction(
445452
446453 process_get_account_data_size ( accounts)
447454 }
448- // 22 - InitializeImmutableOwner
449- 22 => {
450- #[ cfg( feature = "logging" ) ]
451- pinocchio:: msg!( "Instruction: InitializeImmutableOwner" ) ;
452-
453- process_initialize_immutable_owner ( accounts)
454- }
455455 // 23 - AmountToUiAmount
456456 23 => {
457457 #[ cfg( feature = "logging" ) ]
0 commit comments