Skip to content

Commit

Permalink
Remove dependency on ata program from token-client
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Aug 26, 2024
1 parent f6ac427 commit 52fc28e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion 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 token/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ solana-logger = "2.0.3"
solana-remote-wallet = "2.0.3"
solana-sdk = "2.0.3"
solana-transaction-status = "2.0.3"
spl-associated-token-account-client = { version = "1.0.0", path = "../../associated-token-account/client" }
spl-token = { version = "6.0", path = "../program", features = [
"no-entrypoint",
] }
Expand All @@ -38,7 +39,6 @@ spl-token-client = { version = "0.11.0", path = "../client" }
spl-token-confidential-transfer-proof-generation = { version = "0.1.0", path = "../confidential-transfer/proof-generation" }
spl-token-metadata-interface = { version = "0.4.0", path = "../../token-metadata/interface" }
spl-token-group-interface = { version = "0.3.0", path = "../../token-group/interface" }
spl-associated-token-account-client = { version = "1.0.0", path = "../../associated-token-account/client" }
spl-memo = { version = "5.0", path = "../../memo/program", features = [
"no-entrypoint",
] }
Expand Down
5 changes: 0 additions & 5 deletions token/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ solana-program-test = "2.0.3"
solana-rpc-client = "2.0.3"
solana-rpc-client-api = "2.0.3"
solana-sdk = "2.0.3"
# We never want the entrypoint for ATA, but we want the entrypoint for token when
# testing token
spl-associated-token-account = { version = "4.0.0", path = "../../associated-token-account/program", features = [
"no-entrypoint",
] }
spl-associated-token-account-client = { version = "1.0.0", path = "../../associated-token-account/client" }
spl-memo = { version = "5.0", path = "../../memo/program", features = [
"no-entrypoint",
Expand Down
8 changes: 5 additions & 3 deletions token/client/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ use {
system_instruction,
transaction::Transaction,
},
spl_associated_token_account::instruction::{
create_associated_token_account, create_associated_token_account_idempotent,
spl_associated_token_account_client::{
address::get_associated_token_address_with_program_id,
instruction::{
create_associated_token_account, create_associated_token_account_idempotent,
},
},
spl_associated_token_account_client::address::get_associated_token_address_with_program_id,
spl_record::state::RecordData,
spl_token_2022::{
extension::{
Expand Down

0 comments on commit 52fc28e

Please sign in to comment.