Remove TODO
This commit is contained in:
parent
0df75ab5e8
commit
43b9a37836
|
@ -119,8 +119,8 @@ fn process_configure_account(
|
||||||
let mint = StateWithExtensions::<Mint>::unpack(mint_data)?;
|
let mint = StateWithExtensions::<Mint>::unpack(mint_data)?;
|
||||||
let ct_mint = mint.get_extension::<ConfidentialTransferMint>()?;
|
let ct_mint = mint.get_extension::<ConfidentialTransferMint>()?;
|
||||||
|
|
||||||
// TODO: Support reallocating the token account (and re-checking rent) if there's insufficient
|
// Note: The caller is expected to use the `Reallocate` instruction to ensure there is
|
||||||
// room for the new extension.
|
// sufficient room in their token account for the new `ConfidentialTransferAccount` extension
|
||||||
let mut ct_token_account = token_account.init_extension::<ConfidentialTransferAccount>()?;
|
let mut ct_token_account = token_account.init_extension::<ConfidentialTransferAccount>()?;
|
||||||
ct_token_account.approved = ct_mint.auto_approve_new_accounts;
|
ct_token_account.approved = ct_mint.auto_approve_new_accounts;
|
||||||
ct_token_account.elgamal_pk = *elgamal_pk;
|
ct_token_account.elgamal_pk = *elgamal_pk;
|
||||||
|
|
Loading…
Reference in New Issue