From b8d2e4f2ecae1511ab88785091933d4098fe7433 Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Sat, 2 Nov 2024 18:28:53 +0400 Subject: [PATCH] fix doc tests --- Cargo.lock | 1 + rpc-client-nonce-utils/Cargo.toml | 1 + rpc-client-nonce-utils/src/nonblocking/mod.rs | 12 +++++++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d7204ae7423bef..165d479d9ba059 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7892,6 +7892,7 @@ dependencies = [ "solana-pubkey", "solana-rpc-client", "solana-rpc-client-api", + "solana-sdk", "solana-sha256-hasher", "thiserror", "tokio", diff --git a/rpc-client-nonce-utils/Cargo.toml b/rpc-client-nonce-utils/Cargo.toml index 4614225ff86fde..746da1965b05f8 100644 --- a/rpc-client-nonce-utils/Cargo.toml +++ b/rpc-client-nonce-utils/Cargo.toml @@ -28,6 +28,7 @@ solana-account-decoder = { workspace = true } solana-fee-calculator = { workspace = true } solana-program = { workspace = true, default-features = false } solana-rpc-client-api = { workspace = true } +solana-sdk = { workspace = true } solana-sha256-hasher = { workspace = true } tokio = { workspace = true, features = ["full"] } diff --git a/rpc-client-nonce-utils/src/nonblocking/mod.rs b/rpc-client-nonce-utils/src/nonblocking/mod.rs index 6cb1e1bd56d113..d19d7f9ea01443 100644 --- a/rpc-client-nonce-utils/src/nonblocking/mod.rs +++ b/rpc-client-nonce-utils/src/nonblocking/mod.rs @@ -148,12 +148,14 @@ pub fn state_from_account>( /// ```no_run /// use solana_rpc_client_nonce_utils::nonblocking; /// use solana_rpc_client::nonblocking::rpc_client::RpcClient; -/// use solana_sdk::{ +/// use solana_program::{ /// message::Message, -/// pubkey::Pubkey, -/// signature::{Keypair, Signer}, -/// system_instruction, -/// transaction::Transaction, +/// system_instruction +/// }; +/// use solana_pubkey::Pubkey; +/// use solana_sdk::{ +/// signer::{keypair::Keypair, Signer}, +/// transaction::Transaction /// }; /// use std::path::Path; /// use anyhow::Result;