diff --git a/p-token/src/entrypoint.rs b/p-token/src/entrypoint.rs index 6b7b3f42..343014e9 100644 --- a/p-token/src/entrypoint.rs +++ b/p-token/src/entrypoint.rs @@ -110,6 +110,13 @@ pub(crate) fn inner_process_instruction( process_mint_to(accounts, instruction_data) } + // 8 - Burn + 8 => { + #[cfg(feature = "logging")] + pinocchio::msg!("Instruction: Burn"); + + process_burn(accounts, instruction_data) + } // 9 - CloseAccount 9 => { #[cfg(feature = "logging")] @@ -117,6 +124,20 @@ pub(crate) fn inner_process_instruction( process_close_account(accounts) } + // 12 - TransferChecked + 12 => { + #[cfg(feature = "logging")] + pinocchio::msg!("Instruction: TransferChecked"); + + process_transfer_checked(accounts, instruction_data) + } + // 15 - BurnChecked + 15 => { + #[cfg(feature = "logging")] + pinocchio::msg!("Instruction: BurnChecked"); + + process_burn_checked(accounts, instruction_data) + } // 16 - InitializeAccount2 16 => { #[cfg(feature = "logging")] @@ -182,13 +203,6 @@ fn inner_process_remaining_instruction( process_set_authority(accounts, instruction_data) } - // 8 - Burn - 8 => { - #[cfg(feature = "logging")] - pinocchio::msg!("Instruction: Burn"); - - process_burn(accounts, instruction_data) - } // 10 - FreezeAccount 10 => { #[cfg(feature = "logging")] @@ -203,13 +217,6 @@ fn inner_process_remaining_instruction( process_thaw_account(accounts) } - // 12 - TransferChecked - 12 => { - #[cfg(feature = "logging")] - pinocchio::msg!("Instruction: TransferChecked"); - - process_transfer_checked(accounts, instruction_data) - } // 13 - ApproveChecked 13 => { #[cfg(feature = "logging")] @@ -224,13 +231,6 @@ fn inner_process_remaining_instruction( process_mint_to_checked(accounts, instruction_data) } - // 15 - BurnChecked - 15 => { - #[cfg(feature = "logging")] - pinocchio::msg!("Instruction: BurnChecked"); - - process_burn_checked(accounts, instruction_data) - } // 17 - SyncNative 17 => { #[cfg(feature = "logging")] diff --git a/p-token/src/processor/amount_to_ui_amount.rs b/p-token/src/processor/amount_to_ui_amount.rs index 5f58bdae..6d02d00b 100644 --- a/p-token/src/processor/amount_to_ui_amount.rs +++ b/p-token/src/processor/amount_to_ui_amount.rs @@ -12,7 +12,6 @@ use { }, }; -#[inline(always)] pub fn process_amount_to_ui_amount( accounts: &[AccountInfo], instruction_data: &[u8], diff --git a/p-token/src/processor/initialize_multisig2.rs b/p-token/src/processor/initialize_multisig2.rs index 884decc7..c5592a46 100644 --- a/p-token/src/processor/initialize_multisig2.rs +++ b/p-token/src/processor/initialize_multisig2.rs @@ -3,7 +3,6 @@ use { pinocchio::{account_info::AccountInfo, program_error::ProgramError, ProgramResult}, }; -#[inline(always)] pub fn process_initialize_multisig2( accounts: &[AccountInfo], instruction_data: &[u8], diff --git a/p-token/src/processor/ui_amount_to_amount.rs b/p-token/src/processor/ui_amount_to_amount.rs index 879e5c05..b479d1b9 100644 --- a/p-token/src/processor/ui_amount_to_amount.rs +++ b/p-token/src/processor/ui_amount_to_amount.rs @@ -11,7 +11,6 @@ use { }, }; -#[inline(always)] pub fn process_ui_amount_to_amount( accounts: &[AccountInfo], instruction_data: &[u8], diff --git a/p-token/src/processor/withdraw_excess_lamports.rs b/p-token/src/processor/withdraw_excess_lamports.rs index cf5ca0ec..59d304ab 100644 --- a/p-token/src/processor/withdraw_excess_lamports.rs +++ b/p-token/src/processor/withdraw_excess_lamports.rs @@ -12,7 +12,6 @@ use { }, }; -#[inline(always)] #[allow(clippy::arithmetic_side_effects)] pub fn process_withdraw_excess_lamports(accounts: &[AccountInfo]) -> ProgramResult { let [source_account_info, destination_info, authority_info, remaining @ ..] = accounts else {