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

Commit 32e06db

Browse files
committed
fix target_os=solana ; test-sbf
1 parent 57684cf commit 32e06db

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[cfg(not(target_os = "solana"))]
2-
use solana_zk_sdk::encryption::pod::elgamal::PodElGamalPubkey;
2+
use crate::proof::{process_proof_location, ProofLocation};
33
#[cfg(not(target_os = "solana"))]
44
use solana_zk_sdk::encryption::{auth_encryption::AeCiphertext, elgamal::ElGamalPubkey};
55
#[cfg(not(target_os = "solana"))]
@@ -10,31 +10,26 @@ use solana_zk_sdk::zk_elgamal_proof_program::{
1010
CiphertextCiphertextEqualityProofData, CiphertextCommitmentEqualityProofData,
1111
},
1212
};
13-
#[cfg(not(target_os = "solana"))]
14-
use {
15-
crate::extension::confidential_transfer::DecryptableBalance,
16-
bytemuck::{Pod, Zeroable},
17-
num_enum::{IntoPrimitive, TryFromPrimitive},
18-
solana_program::pubkey::Pubkey,
19-
solana_zk_sdk::encryption::pod::auth_encryption::PodAeCiphertext,
20-
spl_pod::optional_keys::OptionalNonZeroElGamalPubkey,
21-
};
2213
#[cfg(feature = "serde-traits")]
2314
use {
2415
crate::serialization::aeciphertext_fromstr,
2516
serde::{Deserialize, Serialize},
2617
};
27-
#[cfg(not(target_os = "solana"))]
2818
use {
2919
crate::{
3020
check_program_account,
21+
extension::confidential_transfer::DecryptableBalance,
3122
instruction::{encode_instruction, TokenInstruction},
32-
proof::{process_proof_location, ProofLocation},
3323
},
24+
bytemuck::{Pod, Zeroable},
25+
num_enum::{IntoPrimitive, TryFromPrimitive},
3426
solana_program::{
3527
instruction::{AccountMeta, Instruction},
3628
program_error::ProgramError,
29+
pubkey::Pubkey,
3730
},
31+
solana_zk_sdk::encryption::pod::{auth_encryption::PodAeCiphertext, elgamal::PodElGamalPubkey},
32+
spl_pod::optional_keys::OptionalNonZeroElGamalPubkey,
3833
};
3934

4035
/// Confidential Transfer extension instructions
@@ -281,7 +276,6 @@ pub struct BurnInstructionData {
281276
}
282277

283278
/// Create a `InitializeMint` instruction
284-
#[cfg(not(target_os = "solana"))]
285279
pub fn initialize_mint(
286280
token_program_id: &Pubkey,
287281
mint: &Pubkey,
@@ -304,7 +298,6 @@ pub fn initialize_mint(
304298
}
305299

306300
/// Create a `UpdateMint` instruction
307-
#[cfg(not(target_os = "solana"))]
308301
pub fn update_authority(
309302
token_program_id: &Pubkey,
310303
mint: &Pubkey,

0 commit comments

Comments
 (0)