diff --git a/src/opengradient/client/alpha.py b/src/opengradient/client/alpha.py index d2957c2..49e770c 100644 --- a/src/opengradient/client/alpha.py +++ b/src/opengradient/client/alpha.py @@ -1,5 +1,5 @@ """ -Alpha Testnet features for OpenGradient SDK. +Alpha Testnet features for OpenGradient SDK This module contains features that are only available on the Alpha Testnet, including on-chain ONNX model inference, workflow management, and ML model execution. @@ -163,7 +163,7 @@ def _send_tx_with_revert_handling(self, run_function): "from": self._wallet_account.address, "nonce": nonce, "gas": gas_limit, - "gasPrice": self._blockchain.eth.gas_price, + "maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price, } ) @@ -308,7 +308,7 @@ def deploy_transaction(): "from": self._wallet_account.address, "nonce": self._blockchain.eth.get_transaction_count(self._wallet_account.address, "pending"), "gas": gas_limit, - "gasPrice": self._blockchain.eth.gas_price, + "maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price, "chainId": self._blockchain.eth.chain_id, } ) @@ -359,7 +359,7 @@ def _register_with_scheduler(self, contract_address: str, scheduler_params: Sche { "from": self._wallet_account.address, "gas": 300000, - "gasPrice": self._blockchain.eth.gas_price, + "maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price, "nonce": self._blockchain.eth.get_transaction_count(self._wallet_account.address, "pending"), "chainId": self._blockchain.eth.chain_id, } @@ -425,7 +425,7 @@ def run_workflow(self, contract_address: str) -> ModelOutput: "from": self._wallet_account.address, "nonce": nonce, "gas": 30000000, - "gasPrice": self._blockchain.eth.gas_price, + "maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price, "chainId": self._blockchain.eth.chain_id, } )