Skip to content

Commit

Permalink
Merge pull request #35 from GenesysGo/tracy/commitment-status-update
Browse files Browse the repository at this point in the history
Update commitment status to confirmed
  • Loading branch information
cavemanloverboy authored Feb 27, 2023
2 parents 65335b8 + 8aaf235 commit 48d097e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ where
/// * `wallet` - A [`Signer`] that for signs all transactions generated by the client. Typically this is a user's keypair.
/// * `rpc_url` - An HTTP URL of a Solana RPC provider.
///
/// The underlying Solana RPC client is configured with 120s timeout and a [commitment level][cl] of [`Finalized`](solana_sdk::commitment_config::CommitmentLevel::Finalized).
/// The underlying Solana RPC client is configured with 120s timeout and a [commitment level][cl] of [`confirmed`](solana_sdk::commitment_config::CommitmentLevel::Confirmed).
///
/// [cl]: https://docs.solana.com/developing/clients/jsonrpc-api#configuring-state-commitment
///
Expand All @@ -79,7 +79,7 @@ where
let rpc_client = RpcClient::new_with_timeout_and_commitment(
rpc_url.to_string(),
Duration::from_secs(120),
CommitmentConfig::finalized(),
CommitmentConfig::confirmed(),
);
Self {
wallet,
Expand Down

0 comments on commit 48d097e

Please sign in to comment.