From d5d51aed177432e62950385336b79f8395c940f9 Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:17:13 -0800 Subject: [PATCH] [RustSDK] Less noise when rpc version and local CLI version mismatch (#20259) ## Description This PR removes the SDK tracing warning on mismatch local + RPC API versions. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- crates/sui-sdk/src/wallet_context.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/sui-sdk/src/wallet_context.rs b/crates/sui-sdk/src/wallet_context.rs index 863f2ebeafb16..a50dca1d60a64 100644 --- a/crates/sui-sdk/src/wallet_context.rs +++ b/crates/sui-sdk/src/wallet_context.rs @@ -4,7 +4,6 @@ use crate::sui_client_config::SuiClientConfig; use crate::SuiClient; use anyhow::anyhow; -use colored::Colorize; use shared_crypto::intent::Intent; use std::collections::BTreeSet; use std::path::Path; @@ -20,7 +19,6 @@ use sui_types::crypto::SuiKeyPair; use sui_types::gas_coin::GasCoin; use sui_types::transaction::{Transaction, TransactionData, TransactionDataAPI}; use tokio::sync::RwLock; -use tracing::warn; pub struct WalletContext { pub config: PersistedConfig, @@ -68,10 +66,6 @@ impl WalletContext { .get_active_env()? .create_rpc_client(self.request_timeout, self.max_concurrent_requests) .await?; - if let Err(e) = client.check_api_version() { - warn!("{e}"); - eprintln!("{}", format!("[warn] {e}").yellow().bold()); - } self.client.write().await.insert(client).clone() }) }