Skip to content

Commit 12a8786

Browse files
authored
Return immediately after submitting handleOps() (#3660)
1 parent e47cb12 commit 12a8786

File tree

1 file changed

+1
-6
lines changed
  • tee-worker/omni-executor/ethereum-rpc/src

1 file changed

+1
-6
lines changed

tee-worker/omni-executor/ethereum-rpc/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,9 @@ impl RpcProvider for AlloyRpcProvider {
173173
.await
174174
.map_err(RpcProviderError::from_alloy_error)?;
175175

176-
// Get transaction hash before waiting for receipt
176+
// Get transaction hash and return immediately without waiting for confirmation
177177
let tx_hash = pending_tx.tx_hash().to_string();
178178

179-
// wait for transaction to be included
180-
let _ = pending_tx.get_receipt().await.map_err(|e| {
181-
RpcProviderError::Transaction(format!("Failed to get transaction receipt: {}", e))
182-
})?;
183-
184179
Ok(tx_hash)
185180
}
186181

0 commit comments

Comments
 (0)