Skip to content

Commit

Permalink
client: Rename confrim -> confirm (#32861)
Browse files Browse the repository at this point in the history
* client: Rename confrim -> confirm

* Rebase fix
  • Loading branch information
joncinque authored Aug 17, 2023
1 parent fea5460 commit 0f8a871
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use {
solana_client::{
connection_cache::ConnectionCache,
send_and_confirm_transactions_in_parallel::{
send_and_confirm_transactions_in_parallel_blocking, SendAndConfrimConfig,
send_and_confirm_transactions_in_parallel_blocking, SendAndConfirmConfig,
},
tpu_client::{TpuClient, TpuClientConfig},
},
Expand Down Expand Up @@ -2198,7 +2198,7 @@ fn send_deploy_messages(
Some(tpu_client),
write_messages,
&[payer_signer, write_signer],
SendAndConfrimConfig {
SendAndConfirmConfig {
resign_txs_count: Some(5),
with_spinner: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use {
solana_client::{
nonblocking::tpu_client::TpuClient,
send_and_confirm_transactions_in_parallel::{
send_and_confirm_transactions_in_parallel_blocking, SendAndConfrimConfig,
send_and_confirm_transactions_in_parallel_blocking, SendAndConfirmConfig,
},
},
solana_rpc_client::rpc_client::RpcClient,
Expand Down Expand Up @@ -56,7 +56,7 @@ fn test_send_and_confirm_transactions_in_parallel_without_tpu_client() {
None,
&messages,
&[&alice],
SendAndConfrimConfig {
SendAndConfirmConfig {
with_spinner: false,
resign_txs_count: Some(5),
},
Expand Down Expand Up @@ -114,7 +114,7 @@ fn test_send_and_confirm_transactions_in_parallel_with_tpu_client() {
Some(tpu_client),
&messages,
&[&alice],
SendAndConfrimConfig {
SendAndConfirmConfig {
with_spinner: false,
resign_txs_count: Some(5),
},
Expand Down
6 changes: 3 additions & 3 deletions client/src/send_and_confirm_transactions_in_parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct BlockHashData {
}

#[derive(Clone, Debug, Copy)]
pub struct SendAndConfrimConfig {
pub struct SendAndConfirmConfig {
pub with_spinner: bool,
pub resign_txs_count: Option<usize>,
}
Expand All @@ -61,7 +61,7 @@ pub fn send_and_confirm_transactions_in_parallel_blocking<T: Signers + ?Sized>(
tpu_client: Option<QuicTpuClient>,
messages: &[Message],
signers: &T,
config: SendAndConfrimConfig,
config: SendAndConfirmConfig,
) -> Result<Vec<Option<TransactionError>>> {
let fut = send_and_confirm_transactions_in_parallel(
rpc_client.get_inner_client().clone(),
Expand Down Expand Up @@ -352,7 +352,7 @@ pub async fn send_and_confirm_transactions_in_parallel<T: Signers + ?Sized>(
tpu_client: Option<QuicTpuClient>,
messages: &[Message],
signers: &T,
config: SendAndConfrimConfig,
config: SendAndConfirmConfig,
) -> Result<Vec<Option<TransactionError>>> {
// get current blockhash and corresponding last valid block height
let (blockhash, last_valid_blockheight) = rpc_client
Expand Down

0 comments on commit 0f8a871

Please sign in to comment.