Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 0351963

Browse files
[token-2022] Remove build target restriction on confidential transfer instruction constructors (#6190)
remove build target restriction on confidential transfer instruction constructors
1 parent 0e0dfc4 commit 0351963

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

token/program-2022/src/extension/confidential_transfer/instruction.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,6 @@ pub struct CloseSplitContextStateAccounts<'a> {
641641
}
642642

643643
/// Create a `InitializeMint` instruction
644-
#[cfg(not(target_os = "solana"))]
645644
pub fn initialize_mint(
646645
token_program_id: &Pubkey,
647646
mint: &Pubkey,
@@ -666,7 +665,6 @@ pub fn initialize_mint(
666665
}
667666

668667
/// Create a `UpdateMint` instruction
669-
#[cfg(not(target_os = "solana"))]
670668
pub fn update_mint(
671669
token_program_id: &Pubkey,
672670
mint: &Pubkey,
@@ -699,7 +697,6 @@ pub fn update_mint(
699697
///
700698
/// This instruction is suitable for use with a cross-program `invoke`
701699
#[allow(clippy::too_many_arguments)]
702-
#[cfg(not(target_os = "solana"))]
703700
pub fn inner_configure_account(
704701
token_program_id: &Pubkey,
705702
token_account: &Pubkey,
@@ -752,7 +749,6 @@ pub fn inner_configure_account(
752749

753750
/// Create a `ConfigureAccount` instruction
754751
#[allow(clippy::too_many_arguments)]
755-
#[cfg(not(target_os = "solana"))]
756752
pub fn configure_account(
757753
token_program_id: &Pubkey,
758754
token_account: &Pubkey,
@@ -985,7 +981,6 @@ pub fn inner_withdraw(
985981

986982
/// Create a `Withdraw` instruction
987983
#[allow(clippy::too_many_arguments)]
988-
#[cfg(not(target_os = "solana"))]
989984
pub fn withdraw(
990985
token_program_id: &Pubkey,
991986
token_account: &Pubkey,
@@ -1081,7 +1076,6 @@ pub fn inner_transfer(
10811076

10821077
/// Create a `Transfer` instruction with regular (no-fee) proof
10831078
#[allow(clippy::too_many_arguments)]
1084-
#[cfg(not(target_os = "solana"))]
10851079
pub fn transfer(
10861080
token_program_id: &Pubkey,
10871081
source_token_account: &Pubkey,
@@ -1175,7 +1169,6 @@ pub fn inner_transfer_with_fee(
11751169

11761170
/// Create a `Transfer` instruction with fee proof
11771171
#[allow(clippy::too_many_arguments)]
1178-
#[cfg(not(target_os = "solana"))]
11791172
pub fn transfer_with_fee(
11801173
token_program_id: &Pubkey,
11811174
source_token_account: &Pubkey,
@@ -1248,7 +1241,6 @@ pub fn inner_apply_pending_balance(
12481241
}
12491242

12501243
/// Create a `ApplyPendingBalance` instruction
1251-
#[cfg(not(target_os = "solana"))]
12521244
pub fn apply_pending_balance(
12531245
token_program_id: &Pubkey,
12541246
token_account: &Pubkey,

0 commit comments

Comments
 (0)