From 137a47d62ab921190332e15cf8588fa43e8b61b0 Mon Sep 17 00:00:00 2001 From: AMATH <116212274+amathxbt@users.noreply.github.com> Date: Mon, 30 Mar 2026 22:40:26 +0100 Subject: [PATCH] fix: replace hardcoded 60s timeout in deploy_model() with INFERENCE_TX_TIMEOUT --- src/opengradient/client/alpha.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/opengradient/client/alpha.py b/src/opengradient/client/alpha.py index a4e633ec..e7c0dc78 100644 --- a/src/opengradient/client/alpha.py +++ b/src/opengradient/client/alpha.py @@ -315,7 +315,7 @@ def deploy_transaction(): signed_txn = self._wallet_account.sign_transaction(transaction) tx_hash = self._blockchain.eth.send_raw_transaction(signed_txn.raw_transaction) - tx_receipt = self._blockchain.eth.wait_for_transaction_receipt(tx_hash, timeout=60) + tx_receipt = self._blockchain.eth.wait_for_transaction_receipt(tx_hash, timeout=INFERENCE_TX_TIMEOUT) if tx_receipt["status"] == 0: raise Exception(f"Contract deployment failed, transaction hash: {tx_hash.hex()}") @@ -462,3 +462,4 @@ def read_workflow_history(self, contract_address: str, num_results: int) -> List results = contract.functions.getLastInferenceResults(num_results).call() return [convert_array_to_model_output(result) for result in results] +