Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 0f8a871

Browse files
authored
client: Rename confrim -> confirm (#32861)
* client: Rename confrim -> confirm * Rebase fix
1 parent fea5460 commit 0f8a871

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cli/src/program.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use {
2222
solana_client::{
2323
connection_cache::ConnectionCache,
2424
send_and_confirm_transactions_in_parallel::{
25-
send_and_confirm_transactions_in_parallel_blocking, SendAndConfrimConfig,
25+
send_and_confirm_transactions_in_parallel_blocking, SendAndConfirmConfig,
2626
},
2727
tpu_client::{TpuClient, TpuClientConfig},
2828
},
@@ -2198,7 +2198,7 @@ fn send_deploy_messages(
21982198
Some(tpu_client),
21992199
write_messages,
22002200
&[payer_signer, write_signer],
2201-
SendAndConfrimConfig {
2201+
SendAndConfirmConfig {
22022202
resign_txs_count: Some(5),
22032203
with_spinner: true,
22042204
},

client-test/tests/send_and_confrim_transactions_in_parallel.rs client-test/tests/send_and_confirm_transactions_in_parallel.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use {
22
solana_client::{
33
nonblocking::tpu_client::TpuClient,
44
send_and_confirm_transactions_in_parallel::{
5-
send_and_confirm_transactions_in_parallel_blocking, SendAndConfrimConfig,
5+
send_and_confirm_transactions_in_parallel_blocking, SendAndConfirmConfig,
66
},
77
},
88
solana_rpc_client::rpc_client::RpcClient,
@@ -56,7 +56,7 @@ fn test_send_and_confirm_transactions_in_parallel_without_tpu_client() {
5656
None,
5757
&messages,
5858
&[&alice],
59-
SendAndConfrimConfig {
59+
SendAndConfirmConfig {
6060
with_spinner: false,
6161
resign_txs_count: Some(5),
6262
},
@@ -114,7 +114,7 @@ fn test_send_and_confirm_transactions_in_parallel_with_tpu_client() {
114114
Some(tpu_client),
115115
&messages,
116116
&[&alice],
117-
SendAndConfrimConfig {
117+
SendAndConfirmConfig {
118118
with_spinner: false,
119119
resign_txs_count: Some(5),
120120
},

client/src/send_and_confirm_transactions_in_parallel.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct BlockHashData {
5151
}
5252

5353
#[derive(Clone, Debug, Copy)]
54-
pub struct SendAndConfrimConfig {
54+
pub struct SendAndConfirmConfig {
5555
pub with_spinner: bool,
5656
pub resign_txs_count: Option<usize>,
5757
}
@@ -61,7 +61,7 @@ pub fn send_and_confirm_transactions_in_parallel_blocking<T: Signers + ?Sized>(
6161
tpu_client: Option<QuicTpuClient>,
6262
messages: &[Message],
6363
signers: &T,
64-
config: SendAndConfrimConfig,
64+
config: SendAndConfirmConfig,
6565
) -> Result<Vec<Option<TransactionError>>> {
6666
let fut = send_and_confirm_transactions_in_parallel(
6767
rpc_client.get_inner_client().clone(),
@@ -352,7 +352,7 @@ pub async fn send_and_confirm_transactions_in_parallel<T: Signers + ?Sized>(
352352
tpu_client: Option<QuicTpuClient>,
353353
messages: &[Message],
354354
signers: &T,
355-
config: SendAndConfrimConfig,
355+
config: SendAndConfirmConfig,
356356
) -> Result<Vec<Option<TransactionError>>> {
357357
// get current blockhash and corresponding last valid block height
358358
let (blockhash, last_valid_blockheight) = rpc_client

0 commit comments

Comments
 (0)