From 43b9a3783625b01c7d70dae567a6c5db347aa77c Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 4 Feb 2022 09:58:06 -0800 Subject: [PATCH] Remove TODO --- .../src/extension/confidential_transfer/processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/token/program-2022/src/extension/confidential_transfer/processor.rs b/token/program-2022/src/extension/confidential_transfer/processor.rs index e0457bc6..01abb24d 100644 --- a/token/program-2022/src/extension/confidential_transfer/processor.rs +++ b/token/program-2022/src/extension/confidential_transfer/processor.rs @@ -119,8 +119,8 @@ fn process_configure_account( let mint = StateWithExtensions::::unpack(mint_data)?; let ct_mint = mint.get_extension::()?; - // TODO: Support reallocating the token account (and re-checking rent) if there's insufficient - // room for the new extension. + // Note: The caller is expected to use the `Reallocate` instruction to ensure there is + // sufficient room in their token account for the new `ConfidentialTransferAccount` extension let mut ct_token_account = token_account.init_extension::()?; ct_token_account.approved = ct_mint.auto_approve_new_accounts; ct_token_account.elgamal_pk = *elgamal_pk;