6
6
} ,
7
7
pinocchio:: {
8
8
account_info:: AccountInfo ,
9
- entrypoint:: deserialize_into ,
9
+ entrypoint:: deserialize ,
10
10
hint:: likely,
11
11
no_allocator, nostd_panic_handler,
12
12
program_error:: { ProgramError , ToStr } ,
@@ -88,7 +88,7 @@ pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
88
88
/// previous accounts have zero data.
89
89
///
90
90
/// 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 ;
92
92
93
93
/// Align an address to the next multiple of 8.
94
94
#[ inline( always) ]
@@ -202,10 +202,10 @@ pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
202
202
const UNINIT : MaybeUninit < AccountInfo > = MaybeUninit :: < AccountInfo > :: uninit ( ) ;
203
203
let mut accounts = [ UNINIT ; { MAX_TX_ACCOUNTS } ] ;
204
204
205
- let ( count, instruction_data) = deserialize_into ( input, & mut accounts) ;
205
+ let ( _ , count, instruction_data) = deserialize ( input, & mut accounts) ;
206
206
207
207
match process_instruction (
208
- from_raw_parts ( accounts. as_ptr ( ) as _ , count as usize ) ,
208
+ from_raw_parts ( accounts. as_ptr ( ) as _ , count) ,
209
209
instruction_data,
210
210
) {
211
211
Ok ( ( ) ) => SUCCESS ,
@@ -331,12 +331,12 @@ pub(crate) fn inner_process_instruction(
331
331
332
332
process_burn_checked ( accounts, instruction_data)
333
333
}
334
- // 16 - InitializeAccount2
335
- 16 => {
334
+ // 17 - SyncNative
335
+ 17 => {
336
336
#[ cfg( feature = "logging" ) ]
337
- pinocchio:: msg!( "Instruction: InitializeAccount2 " ) ;
337
+ pinocchio:: msg!( "Instruction: SyncNative " ) ;
338
338
339
- process_initialize_account2 ( accounts, instruction_data )
339
+ process_sync_native ( accounts)
340
340
}
341
341
// 18 - InitializeAccount3
342
342
18 => {
@@ -352,6 +352,13 @@ pub(crate) fn inner_process_instruction(
352
352
353
353
process_initialize_mint2 ( accounts, instruction_data)
354
354
}
355
+ // 22 - InitializeImmutableOwner
356
+ 22 => {
357
+ #[ cfg( feature = "logging" ) ]
358
+ pinocchio:: msg!( "Instruction: InitializeImmutableOwner" ) ;
359
+
360
+ process_initialize_immutable_owner ( accounts)
361
+ }
355
362
d => inner_process_remaining_instruction ( accounts, instruction_data, d) ,
356
363
}
357
364
}
@@ -424,12 +431,12 @@ fn inner_process_remaining_instruction(
424
431
425
432
process_mint_to_checked ( accounts, instruction_data)
426
433
}
427
- // 17 - SyncNative
428
- 17 => {
434
+ // 16 - InitializeAccount2
435
+ 16 => {
429
436
#[ cfg( feature = "logging" ) ]
430
- pinocchio:: msg!( "Instruction: SyncNative " ) ;
437
+ pinocchio:: msg!( "Instruction: InitializeAccount2 " ) ;
431
438
432
- process_sync_native ( accounts)
439
+ process_initialize_account2 ( accounts, instruction_data )
433
440
}
434
441
// 19 - InitializeMultisig2
435
442
19 => {
@@ -445,13 +452,6 @@ fn inner_process_remaining_instruction(
445
452
446
453
process_get_account_data_size ( accounts)
447
454
}
448
- // 22 - InitializeImmutableOwner
449
- 22 => {
450
- #[ cfg( feature = "logging" ) ]
451
- pinocchio:: msg!( "Instruction: InitializeImmutableOwner" ) ;
452
-
453
- process_initialize_immutable_owner ( accounts)
454
- }
455
455
// 23 - AmountToUiAmount
456
456
23 => {
457
457
#[ cfg( feature = "logging" ) ]
0 commit comments