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

Commit 43b9a37

Browse files
committed
Remove TODO
1 parent 0df75ab commit 43b9a37

File tree

1 file changed

+2
-2
lines changed
  • token/program-2022/src/extension/confidential_transfer

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ fn process_configure_account(
119119
let mint = StateWithExtensions::<Mint>::unpack(mint_data)?;
120120
let ct_mint = mint.get_extension::<ConfidentialTransferMint>()?;
121121

122-
// TODO: Support reallocating the token account (and re-checking rent) if there's insufficient
123-
// room for the new extension.
122+
// Note: The caller is expected to use the `Reallocate` instruction to ensure there is
123+
// sufficient room in their token account for the new `ConfidentialTransferAccount` extension
124124
let mut ct_token_account = token_account.init_extension::<ConfidentialTransferAccount>()?;
125125
ct_token_account.approved = ct_mint.auto_approve_new_accounts;
126126
ct_token_account.elgamal_pk = *elgamal_pk;

0 commit comments

Comments
 (0)