Skip to content

Commit 927f4f0

Browse files
authored
remove solana-program from clap-utils (anza-xyz#4539)
* remove solana-program from clap-utils * missing feature activation
1 parent 9e3d44e commit 927f4f0

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

Cargo.lock

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clap-utils/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ solana-commitment-config = { workspace = true }
1919
solana-derivation-path = { workspace = true }
2020
solana-hash = { workspace = true }
2121
solana-keypair = { workspace = true, features = ["seed-derivable"] }
22+
solana-message = { workspace = true }
2223
solana-native-token = { workspace = true }
2324
solana-presigner = { workspace = true }
24-
solana-program = { workspace = true }
2525
solana-pubkey = { workspace = true }
2626
solana-remote-wallet = { workspace = true, features = ["default"] }
2727
solana-seed-phrase = { workspace = true }
@@ -35,6 +35,7 @@ url = { workspace = true }
3535
[dev-dependencies]
3636
assert_matches = { workspace = true }
3737
solana-pubkey = { workspace = true, features = ["rand"] }
38+
solana-system-interface = { workspace = true, features = ["bincode"] }
3839
tempfile = { workspace = true }
3940

4041
[lib]

clap-utils/src/keypair.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use {
2424
keypair_from_seed, keypair_from_seed_phrase_and_passphrase, read_keypair,
2525
read_keypair_file, seed_derivable::keypair_from_seed_and_derivation_path, Keypair,
2626
},
27+
solana_message::Message,
2728
solana_presigner::Presigner,
28-
solana_program::message::Message,
2929
solana_pubkey::Pubkey,
3030
solana_remote_wallet::{
3131
locator::{Locator as RemoteWalletLocator, LocatorError as RemoteWalletLocatorError},
@@ -1125,8 +1125,8 @@ mod tests {
11251125
assert_matches::assert_matches,
11261126
clap::{value_t_or_exit, App, Arg},
11271127
solana_keypair::write_keypair_file,
1128-
solana_program::system_instruction,
11291128
solana_remote_wallet::{locator::Manufacturer, remote_wallet::initialize_wallet_manager},
1129+
solana_system_interface::instruction::transfer,
11301130
tempfile::{NamedTempFile, TempDir},
11311131
};
11321132

@@ -1147,11 +1147,7 @@ mod tests {
11471147
let nonsigner2 = Keypair::new();
11481148
let recipient = Pubkey::new_unique();
11491149
let message = Message::new(
1150-
&[system_instruction::transfer(
1151-
&source.pubkey(),
1152-
&recipient,
1153-
42,
1154-
)],
1150+
&[transfer(&source.pubkey(), &recipient, 42)],
11551151
Some(&fee_payer.pubkey()),
11561152
);
11571153
let signers = vec![

keygen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ solana-cli-config = { workspace = true }
2020
solana-derivation-path = { workspace = true }
2121
solana-instruction = { workspace = true }
2222
solana-keypair = { workspace = true }
23-
solana-message = { workspace = true }
23+
solana-message = { workspace = true, features = ["bincode"] }
2424
solana-pubkey = { workspace = true }
2525
solana-remote-wallet = { workspace = true, features = ["default"] }
2626
solana-seed-derivable = { workspace = true }

programs/sbf/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svm/examples/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)