Skip to content

Commit

Permalink
[RustSDK] Less noise when rpc version and local CLI version mismatch (#…
Browse files Browse the repository at this point in the history
…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:
  • Loading branch information
stefan-mysten authored Nov 14, 2024
1 parent c85e7c0 commit d5d51ae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/sui-sdk/src/wallet_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<SuiClientConfig>,
Expand Down Expand Up @@ -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()
})
}
Expand Down

0 comments on commit d5d51ae

Please sign in to comment.