@@ -190,9 +190,11 @@ fn test_config_with_default_signer<'a>(
190190) -> Config < ' a > {
191191 let websocket_url = test_validator. rpc_pubsub_url ( ) ;
192192 let rpc_client = Arc :: new ( test_validator. get_async_rpc_client ( ) ) ;
193- let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > = Arc :: new (
194- ProgramRpcClient :: new ( rpc_client. clone ( ) , ProgramRpcClientSendTransaction ) ,
195- ) ;
193+ let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
194+ Arc :: new ( ProgramRpcClient :: new (
195+ rpc_client. clone ( ) ,
196+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
197+ ) ) ;
196198 Config {
197199 rpc_client,
198200 program_client,
@@ -219,9 +221,11 @@ fn test_config_without_default_signer<'a>(
219221) -> Config < ' a > {
220222 let websocket_url = test_validator. rpc_pubsub_url ( ) ;
221223 let rpc_client = Arc :: new ( test_validator. get_async_rpc_client ( ) ) ;
222- let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > = Arc :: new (
223- ProgramRpcClient :: new ( rpc_client. clone ( ) , ProgramRpcClientSendTransaction ) ,
224- ) ;
224+ let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
225+ Arc :: new ( ProgramRpcClient :: new (
226+ rpc_client. clone ( ) ,
227+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
228+ ) ) ;
225229 Config {
226230 rpc_client,
227231 program_client,
@@ -3132,7 +3136,7 @@ async fn do_offline_multisig_transfer(
31323136 let offline_program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
31333137 Arc :: new ( ProgramOfflineClient :: new (
31343138 blockhash,
3135- ProgramRpcClientSendTransaction ,
3139+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
31363140 ) ) ;
31373141 let mut args = vec ! [
31383142 "spl-token" . to_string( ) ,
@@ -3192,9 +3196,11 @@ async fn do_offline_multisig_transfer(
31923196 assert ! ( !absent_signers. contains( & token. to_string( ) ) ) ;
31933197
31943198 // now send the transaction
3195- let rpc_program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > = Arc :: new (
3196- ProgramRpcClient :: new ( config. rpc_client . clone ( ) , ProgramRpcClientSendTransaction ) ,
3197- ) ;
3199+ let rpc_program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
3200+ Arc :: new ( ProgramRpcClient :: new (
3201+ config. rpc_client . clone ( ) ,
3202+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
3203+ ) ) ;
31983204 config. program_client = rpc_program_client;
31993205 let mut args = vec ! [
32003206 "spl-token" . to_string( ) ,
@@ -3849,9 +3855,11 @@ async fn transfer_hook(test_validator: &TestValidator, payer: &Keypair) {
38493855 // Make sure that parsing transfer hook accounts works
38503856 let real_program_client = config. program_client ;
38513857 let blockhash = Hash :: default ( ) ;
3852- let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > = Arc :: new (
3853- ProgramOfflineClient :: new ( blockhash, ProgramRpcClientSendTransaction ) ,
3854- ) ;
3858+ let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
3859+ Arc :: new ( ProgramOfflineClient :: new (
3860+ blockhash,
3861+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
3862+ ) ) ;
38553863 config. program_client = program_client;
38563864 let _result = exec_test_cmd (
38573865 & config,
@@ -3965,9 +3973,11 @@ async fn transfer_hook_with_transfer_fee(test_validator: &TestValidator, payer:
39653973
39663974 // Make sure that parsing transfer hook accounts and expected-fee works
39673975 let blockhash = Hash :: default ( ) ;
3968- let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > = Arc :: new (
3969- ProgramOfflineClient :: new ( blockhash, ProgramRpcClientSendTransaction ) ,
3970- ) ;
3976+ let program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
3977+ Arc :: new ( ProgramOfflineClient :: new (
3978+ blockhash,
3979+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
3980+ ) ) ;
39713981 config. program_client = program_client;
39723982
39733983 let _result = exec_test_cmd (
0 commit comments