Skip to content

Commit

Permalink
spl: Update spl-token-2022 to 0.6.1 (coral-xyz#2496)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored May 19, 2023
1 parent 4793b90 commit f9d0eca
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 15 deletions.
28 changes: 23 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ borsh = { version = "^0.9", optional = true }
serum_dex = { git = "https://github.com/openbook-dex/program/", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
solana-program = "1.14.16"
spl-token = { version = "3.5.0", features = ["no-entrypoint"], optional = true }
spl-token-2022 = { version = "0.5.0", features = ["no-entrypoint"], optional = true }
spl-token-2022 = { version = "0.6.1", features = ["no-entrypoint"], optional = true }
spl-associated-token-account = { version = "1.1.1", features = ["no-entrypoint"], optional = true }
mpl-token-metadata = { version = "^1.11.0", optional = true, features = ["no-entrypoint"] }

Expand Down
1 change: 0 additions & 1 deletion tests/escrow/programs/escrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ default = []
[dependencies]
anchor-lang = { path = "../../../../lang" }
anchor-spl = { path = "../../../../spl" }
spl-token-2022 = { version = "0.5.0", features = ["no-entrypoint"] }
6 changes: 3 additions & 3 deletions tests/escrow/programs/escrow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
//! - Initializer will get back ownership of their token X account
use anchor_lang::prelude::*;
use anchor_spl::token_interface::{
self, Mint, SetAuthority, TokenAccount, TokenInterface, TransferChecked,
use anchor_spl::{
token_2022::spl_token_2022::instruction::AuthorityType,
token_interface::{self, Mint, SetAuthority, TokenAccount, TokenInterface, TransferChecked},
};
use spl_token_2022::instruction::AuthorityType;

declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");

Expand Down
1 change: 0 additions & 1 deletion tests/spl/token-proxy/programs/token-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ cpi = ["no-entrypoint"]
[dependencies]
anchor-lang = { path = "../../../../../lang" }
anchor-spl = { path = "../../../../../spl" }
spl-token-2022 = { version = "0.5.0", features = ["no-entrypoint"] }
10 changes: 7 additions & 3 deletions tests/spl/token-proxy/programs/token-proxy/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
//! This example demonstrates the use of the `anchor_spl::token` CPI client.
use anchor_lang::prelude::*;
use anchor_spl::associated_token::AssociatedToken;
use anchor_spl::token_interface::{
self, Burn, Mint, MintTo, SetAuthority, TokenAccount, TokenInterface, Transfer, TransferChecked,
use anchor_spl::{
associated_token::AssociatedToken,
token_2022::spl_token_2022,
token_interface::{
self, Burn, Mint, MintTo, SetAuthority, TokenAccount, TokenInterface, Transfer,
TransferChecked,
},
};

declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
Expand Down
1 change: 0 additions & 1 deletion tests/spl/token-wrapper/programs/token-wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ default = []
[dependencies]
anchor-lang = { path = "../../../../../lang" }
anchor-spl = { path = "../../../../../spl" }
spl-token-2022 = { version = "0.5.0", features = ["no-entrypoint"] }

0 comments on commit f9d0eca

Please sign in to comment.