@@ -190,9 +190,11 @@ fn test_config_with_default_signer<'a>(
190
190
) -> Config < ' a > {
191
191
let websocket_url = test_validator. rpc_pubsub_url ( ) ;
192
192
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
+ ) ) ;
196
198
Config {
197
199
rpc_client,
198
200
program_client,
@@ -219,9 +221,11 @@ fn test_config_without_default_signer<'a>(
219
221
) -> Config < ' a > {
220
222
let websocket_url = test_validator. rpc_pubsub_url ( ) ;
221
223
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
+ ) ) ;
225
229
Config {
226
230
rpc_client,
227
231
program_client,
@@ -3132,7 +3136,7 @@ async fn do_offline_multisig_transfer(
3132
3136
let offline_program_client: Arc < dyn ProgramClient < ProgramRpcClientSendTransaction > > =
3133
3137
Arc :: new ( ProgramOfflineClient :: new (
3134
3138
blockhash,
3135
- ProgramRpcClientSendTransaction ,
3139
+ ProgramRpcClientSendTransaction :: new_with_confirmation ( ) ,
3136
3140
) ) ;
3137
3141
let mut args = vec ! [
3138
3142
"spl-token" . to_string( ) ,
@@ -3192,9 +3196,11 @@ async fn do_offline_multisig_transfer(
3192
3196
assert ! ( !absent_signers. contains( & token. to_string( ) ) ) ;
3193
3197
3194
3198
// 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
+ ) ) ;
3198
3204
config. program_client = rpc_program_client;
3199
3205
let mut args = vec ! [
3200
3206
"spl-token" . to_string( ) ,
@@ -3849,9 +3855,11 @@ async fn transfer_hook(test_validator: &TestValidator, payer: &Keypair) {
3849
3855
// Make sure that parsing transfer hook accounts works
3850
3856
let real_program_client = config. program_client ;
3851
3857
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
+ ) ) ;
3855
3863
config. program_client = program_client;
3856
3864
let _result = exec_test_cmd (
3857
3865
& config,
@@ -3965,9 +3973,11 @@ async fn transfer_hook_with_transfer_fee(test_validator: &TestValidator, payer:
3965
3973
3966
3974
// Make sure that parsing transfer hook accounts and expected-fee works
3967
3975
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
+ ) ) ;
3971
3981
config. program_client = program_client;
3972
3982
3973
3983
let _result = exec_test_cmd (
0 commit comments