Use spl-token-2022 in ATA program (#2737)

* Bump ATA to spl-token-2022

* Use latest program to fix id mismatch in deprecated ix test
This commit is contained in:
Tyera Eulberg 2022-01-13 18:40:35 -07:00 committed by GitHub
parent e7737760ee
commit d3a597d2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -3462,7 +3462,7 @@ dependencies = [
"solana-program",
"solana-program-test",
"solana-sdk",
"spl-token 3.2.0",
"spl-token-2022",
]
[[package]]

View File

@ -14,7 +14,7 @@ test-bpf = []
[dependencies]
borsh = "0.9.1"
solana-program = "1.9.2"
spl-token = { version = "3.2", path = "../../token/program", features = ["no-entrypoint"] }
spl-token = { version = "0.1", path = "../../token/program-2022", features = ["no-entrypoint"], package = "spl-token-2022" }
[dev-dependencies]
solana-program-test = "1.9.2"

View File

@ -286,7 +286,7 @@ async fn test_create_associated_token_account_using_deprecated_instruction_creat
get_associated_token_address(&wallet_address, &token_mint_address);
let (mut banks_client, payer, recent_blockhash) =
program_test(token_mint_address, false).start().await;
program_test(token_mint_address, true).start().await;
let rent = banks_client.get_rent().await.unwrap();
let expected_token_account_balance = rent.minimum_balance(spl_token::state::Account::LEN);