From 8c5f6c958264b1eb0ba90007a900f628d5f8ae10 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Thu, 23 May 2024 10:03:57 -0700 Subject: [PATCH] Do not wait for local execution --- src/sui_client.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sui_client.rs b/src/sui_client.rs index d9ca428..3749fad 100644 --- a/src/sui_client.rs +++ b/src/sui_client.rs @@ -17,6 +17,7 @@ use sui_types::base_types::{ObjectID, SuiAddress}; use sui_types::coin::{PAY_MODULE_NAME, PAY_SPLIT_N_FUNC_NAME}; use sui_types::gas_coin::GAS; use sui_types::programmable_transaction_builder::ProgrammableTransactionBuilder; +use sui_types::quorum_driver_types::ExecuteTransactionRequestType; use sui_types::transaction::{ Argument, ObjectArg, ProgrammableTransaction, Transaction, TransactionKind, }; @@ -209,8 +210,8 @@ impl SuiClient { .quorum_driver_api() .execute_transaction_block( tx.clone(), - SuiTransactionBlockResponseOptions::full_content(), - None, + SuiTransactionBlockResponseOptions::new().with_effects(), + Some(ExecuteTransactionRequestType::WaitForEffectsCert), ) .await .tap_err(|err| debug!(?digest, "execute_transaction error: {:?}", err))