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

Commit df6cd8b

Browse files
committed
add conf mint/burn failure docs; remove todo
1 parent 8ad746e commit df6cd8b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl SupplyAccountInfo {
5050
return Err(TokenError::InvalidState);
5151
}
5252
// fresh mints are initialized with a zeroed decryptable_supply
53-
// TODO: include decryptable supply in InitMint instruction
5453
let current_decyptable_supply = if self.decryptable_supply != PodAeCiphertext::default() {
5554
// decrypt the current supply
5655
TryInto::<AeCiphertext>::try_into(self.decryptable_supply)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ pub enum ConfidentialMintBurnInstruction {
9797
UpdateDecryptableSupply,
9898
/// Mints tokens to confidential balance
9999
///
100+
/// Fails if the destination account is frozen.
101+
/// Fails if the associated mint is extended as `NonTransferable`.
102+
///
100103
/// Accounts expected by this instruction:
101104
///
102105
/// * Single authority
@@ -135,6 +138,9 @@ pub enum ConfidentialMintBurnInstruction {
135138
ConfidentialMint,
136139
/// Burn tokens from confidential balance
137140
///
141+
/// Fails if the destination account is frozen.
142+
/// Fails if the associated mint is extended as `NonTransferable`.
143+
///
138144
/// Accounts expected by this instruction:
139145
///
140146
/// * Single authority

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ impl TransferAccountInfo {
241241

242242
/// Create a transfer proof data that is split into equality, ciphertext
243243
/// validity, and range proofs.
244-
#[allow(clippy::type_complexity)]
245244
pub fn generate_split_transfer_proof_data(
246245
&self,
247246
transfer_amount: u64,

0 commit comments

Comments
 (0)