Skip to content

Commit

Permalink
minimise solana-sdk usage in doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Dec 4, 2024
1 parent 52c2f36 commit 4792d21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions rpc-client-nonce-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ futures = { workspace = true }
serde_json = { workspace = true }
solana-account-decoder = { workspace = true }
solana-fee-calculator = { workspace = true }
solana-keypair = { workspace = true }
solana-rpc-client-api = { workspace = true }
solana-sdk = { workspace = true }
solana-sha256-hasher = { workspace = true }
solana-signer = { workspace = true }
solana-system-interface = { workspace = true }
tokio = { workspace = true, features = ["full"] }

Expand Down
13 changes: 5 additions & 8 deletions rpc-client-nonce-utils/src/nonblocking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ pub fn account_identity_ok<T: ReadableAccount>(account: &T) -> Result<(), Error>
/// ```no_run
/// use solana_rpc_client_nonce_utils::nonblocking;
/// use solana_rpc_client::nonblocking::rpc_client::RpcClient;
/// use solana_sdk::{
/// nonce::State,
/// pubkey::Pubkey,
/// };
/// use solana_nonce::state::State;
/// use solana_pubkey::Pubkey;
/// use anyhow::Result;
///
/// futures::executor::block_on(async {
Expand Down Expand Up @@ -147,13 +145,12 @@ pub fn state_from_account<T: ReadableAccount + StateMut<Versions>>(
/// ```no_run
/// use solana_rpc_client_nonce_utils::nonblocking;
/// use solana_rpc_client::nonblocking::rpc_client::RpcClient;
/// use solana_keypair::Keypair;
/// use solana_message::Message;
/// use solana_system_interface::instruction as system_instruction;
/// use solana_pubkey::Pubkey;
/// use solana_sdk::{
/// signer::{keypair::Keypair, Signer},
/// transaction::Transaction
/// };
/// use solana_signer::Signer;
/// use solana_sdk::transaction::Transaction;
/// use std::path::Path;
/// use anyhow::Result;
/// # use anyhow::anyhow;
Expand Down

0 comments on commit 4792d21

Please sign in to comment.