Skip to content

Commit 67d5858

Browse files
authored
Revert "remove solana-program from clap-utils (solana-labs#4363)" (solana-labs#4388)
This reverts commit 927c6d3.
1 parent c79cbf7 commit 67d5858

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Cargo.lock

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

clap-utils/Cargo.toml

Lines changed: 1 addition & 2 deletions
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 }
2322
solana-native-token = { workspace = true }
2423
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,7 +35,6 @@ 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"] }
3938
tempfile = { workspace = true }
4039

4140
[lib]

clap-utils/src/keypair.rs

Lines changed: 7 additions & 3 deletions
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,
2827
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,
11281129
solana_remote_wallet::{locator::Manufacturer, remote_wallet::initialize_wallet_manager},
1129-
solana_system_interface::instruction::transfer,
11301130
tempfile::{NamedTempFile, TempDir},
11311131
};
11321132

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

programs/sbf/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svm/examples/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)