Skip to content

Commit

Permalink
remove solana-program from clap-v3-utils (#4364)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Jan 10, 2025
1 parent b63257c commit 2bad57a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

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

6 changes: 4 additions & 2 deletions clap-v3-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ solana-clock = { workspace = true }
solana-cluster-type = { workspace = true }
solana-commitment-config = { workspace = true }
solana-derivation-path = { workspace = true }
solana-hash = { workspace = true }
# the borsh feature is required to use the value_parser macro
solana-hash = { workspace = true, features = ["borsh"] }
solana-keypair = { workspace = true, features = ["seed-derivable"] }
solana-message = { workspace = true }
solana-native-token = { workspace = true }
solana-presigner = { workspace = true }
solana-program = { workspace = true }
solana-pubkey = { workspace = true }
solana-remote-wallet = { workspace = true, features = ["default"] }
solana-seed-derivable = { workspace = true }
Expand All @@ -37,6 +38,7 @@ url = { workspace = true }
[dev-dependencies]
assert_matches = { workspace = true }
solana-pubkey = { workspace = true, features = ["rand"] }
solana-system-interface = { workspace = true, features = ["bincode"] }
tempfile = { workspace = true }

[lib]
Expand Down
10 changes: 3 additions & 7 deletions clap-v3-utils/src/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use {
solana_derivation_path::DerivationPath,
solana_hash::Hash,
solana_keypair::{read_keypair, read_keypair_file, Keypair},
solana_message::Message,
solana_presigner::Presigner,
solana_program::message::Message,
solana_pubkey::Pubkey,
solana_remote_wallet::{
remote_keypair::generate_remote_keypair,
Expand Down Expand Up @@ -1211,8 +1211,8 @@ mod tests {
crate::offline::OfflineArgs,
clap::{Arg, Command},
solana_keypair::write_keypair_file,
solana_program::system_instruction,
solana_remote_wallet::remote_wallet::initialize_wallet_manager,
solana_system_interface::instruction::transfer,
tempfile::TempDir,
};

Expand All @@ -1233,11 +1233,7 @@ mod tests {
let nonsigner2 = Keypair::new();
let recipient = Pubkey::new_unique();
let message = Message::new(
&[system_instruction::transfer(
&source.pubkey(),
&recipient,
42,
)],
&[transfer(&source.pubkey(), &recipient, 42)],
Some(&fee_payer.pubkey()),
);
let signers = vec![
Expand Down

0 comments on commit 2bad57a

Please sign in to comment.