Skip to content

Commit

Permalink
Revert "remove solana-program from clap-utils (#4363)" (#4388)
Browse files Browse the repository at this point in the history
This reverts commit 927c6d3.
  • Loading branch information
yihau authored Jan 10, 2025
1 parent c79cbf7 commit 67d5858
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions clap-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ solana-commitment-config = { workspace = true }
solana-derivation-path = { workspace = true }
solana-hash = { workspace = true }
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-phrase = { workspace = true }
Expand All @@ -35,7 +35,6 @@ 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: 7 additions & 3 deletions clap-utils/src/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use {
keypair_from_seed, keypair_from_seed_phrase_and_passphrase, read_keypair,
read_keypair_file, seed_derivable::keypair_from_seed_and_derivation_path, Keypair,
},
solana_message::Message,
solana_presigner::Presigner,
solana_program::message::Message,
solana_pubkey::Pubkey,
solana_remote_wallet::{
locator::{Locator as RemoteWalletLocator, LocatorError as RemoteWalletLocatorError},
Expand Down Expand Up @@ -1125,8 +1125,8 @@ mod tests {
assert_matches::assert_matches,
clap::{value_t_or_exit, App, Arg},
solana_keypair::write_keypair_file,
solana_program::system_instruction,
solana_remote_wallet::{locator::Manufacturer, remote_wallet::initialize_wallet_manager},
solana_system_interface::instruction::transfer,
tempfile::{NamedTempFile, TempDir},
};

Expand All @@ -1147,7 +1147,11 @@ mod tests {
let nonsigner2 = Keypair::new();
let recipient = Pubkey::new_unique();
let message = Message::new(
&[transfer(&source.pubkey(), &recipient, 42)],
&[system_instruction::transfer(
&source.pubkey(),
&recipient,
42,
)],
Some(&fee_payer.pubkey()),
);
let signers = vec![
Expand Down
2 changes: 1 addition & 1 deletion programs/sbf/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 svm/examples/Cargo.lock

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

0 comments on commit 67d5858

Please sign in to comment.