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

Commit 3a14e2e

Browse files
committed
fix fmt / serde
1 parent 4fea36d commit 3a14e2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use solana_zk_sdk::zk_elgamal_proof_program::{
1010
CiphertextCiphertextEqualityProofData, CiphertextCommitmentEqualityProofData,
1111
},
1212
};
13-
use spl_pod::optional_keys::OptionalNonZeroPubkey;
1413
#[cfg(feature = "serde-traits")]
1514
use {
1615
crate::serialization::aeciphertext_fromstr,
@@ -30,7 +29,7 @@ use {
3029
pubkey::Pubkey,
3130
},
3231
solana_zk_sdk::encryption::pod::{auth_encryption::PodAeCiphertext, elgamal::PodElGamalPubkey},
33-
spl_pod::optional_keys::OptionalNonZeroElGamalPubkey,
32+
spl_pod::optional_keys::{OptionalNonZeroElGamalPubkey, OptionalNonZeroPubkey},
3433
};
3534

3635
/// Confidential Transfer extension instructions
@@ -186,6 +185,7 @@ pub struct InitializeMintData {
186185
/// The ElGamal pubkey used to encrypt the confidential supply
187186
pub supply_elgamal_pubkey: OptionalNonZeroElGamalPubkey,
188187
/// The initial 0 supply ecrypted with the supply aes key
188+
#[cfg_attr(feature = "serde-traits", serde(with = "aeciphertext_fromstr"))]
189189
pub decryptable_supply: PodAeCiphertext,
190190
}
191191

@@ -268,7 +268,7 @@ pub struct BurnInstructionData {
268268
pub fn initialize_mint(
269269
token_program_id: &Pubkey,
270270
mint: &Pubkey,
271-
authority: Option<Pubkey>,
271+
authority: Pubkey,
272272
confidential_supply_pubkey: Option<PodElGamalPubkey>,
273273
decryptable_supply: Option<PodAeCiphertext>,
274274
) -> Result<Instruction, ProgramError> {
@@ -281,6 +281,7 @@ pub fn initialize_mint(
281281
PodAeCiphertext::zeroed()
282282
};
283283

284+
let authority = Some(authority);
284285
Ok(encode_instruction(
285286
token_program_id,
286287
accounts,

0 commit comments

Comments
 (0)