Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit f6ac427

Browse files
committed
Remove solana-inline-spl dependency
1 parent 53b5574 commit f6ac427

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

associated-token-account/client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ license = "Apache-2.0"
88
edition = "2021"
99

1010
[dependencies]
11-
solana-inline-spl = "2.0.3"
1211
solana-program = "2.0.3"
1312

1413
[package.metadata.docs.rs]

associated-token-account/client/src/address.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pub fn get_associated_token_address_and_bump_seed(
1818
)
1919
}
2020

21+
mod inline_spl_token {
22+
solana_program::declare_id!("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
23+
}
24+
2125
/// Derives the associated token account address for the given wallet address
2226
/// and token mint
2327
pub fn get_associated_token_address(
@@ -27,7 +31,7 @@ pub fn get_associated_token_address(
2731
get_associated_token_address_with_program_id(
2832
wallet_address,
2933
token_mint_address,
30-
&solana_inline_spl::token::ID,
34+
&inline_spl_token::ID,
3135
)
3236
}
3337

associated-token-account/program/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ no-entrypoint = []
1212
test-sbf = []
1313

1414
[dependencies]
15-
assert_matches = "1.5.0"
1615
borsh = "1.5.1"
1716
num-derive = "0.4"
1817
num-traits = "0.2"

0 commit comments

Comments
 (0)