ATA: update token dependency comments (#2415)

This commit is contained in:
Sebastian Bor 2021-09-15 12:25:26 +01:00 committed by GitHub
parent a036953d12
commit 1db4604c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ pub fn create_associated_token_account(
spl_token_mint_address, spl_token_mint_address,
); );
// TODO: Remove after ATA 1.0.4 and Token 3.2.0 are released (Token::InitializeAccount3 is required if rent account is not provided) // TODO: Remove after ATA 1.0.4 and Token >3.2.0 are released (Token::InitializeAccount3 is required if rent account is not provided)
instruction instruction
.accounts .accounts
.push(AccountMeta::new_readonly(sysvar::rent::id(), false)); .push(AccountMeta::new_readonly(sysvar::rent::id(), false));

View File

@ -51,7 +51,7 @@ pub fn process_create_associated_token_account(
let spl_token_program_info = next_account_info(account_info_iter)?; let spl_token_program_info = next_account_info(account_info_iter)?;
let spl_token_program_id = spl_token_program_info.key; let spl_token_program_id = spl_token_program_info.key;
// TODO: Remove after ATA 1.0.4 and Token 3.2.0 are released and just use Rent::get() // TODO: Remove after ATA 1.0.4 and Token >3.2.0 are released and just use Rent::get()
let (rent_sysvar_info, rent) = next_account_info(account_info_iter) let (rent_sysvar_info, rent) = next_account_info(account_info_iter)
.map(|info| (Some(info), Rent::from_account_info(info).unwrap())) .map(|info| (Some(info), Rent::from_account_info(info).unwrap()))
.unwrap_or((None, Rent::get().unwrap())); .unwrap_or((None, Rent::get().unwrap()));

View File

@ -12,7 +12,7 @@ pub fn program_test(token_mint_address: Pubkey, use_latest_spl_token: bool) -> P
); );
if use_latest_spl_token { if use_latest_spl_token {
// TODO: Remove after Token 3.2.0 is released // TODO: Remove after Token >3.2.0 is released
pc.add_program( pc.add_program(
"spl_token", "spl_token",
spl_token::id(), spl_token::id(),