@@ -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" ) ]
1514use {
1615 crate :: serialization:: aeciphertext_fromstr,
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 {
268268pub 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