diff --git a/PyEthHelper/EthContractHelper.py b/PyEthHelper/EthContractHelper.py index 7e26055..c13a7fa 100644 --- a/PyEthHelper/EthContractHelper.py +++ b/PyEthHelper/EthContractHelper.py @@ -290,7 +290,7 @@ def _DoTransaction( # need to sign tx = executable.build_transaction(msg) signedTx = _SignTx(w3, tx, privKey, confirmPrompt) - txHash = w3.eth.send_raw_transaction(signedTx.rawTransaction) + txHash = w3.eth.send_raw_transaction(signedTx.raw_transaction) receipt = w3.eth.wait_for_transaction_receipt(txHash) diff --git a/PyEthHelper/GethNodeGuard.py b/PyEthHelper/GethNodeGuard.py index 7c9f896..7e85123 100644 --- a/PyEthHelper/GethNodeGuard.py +++ b/PyEthHelper/GethNodeGuard.py @@ -100,6 +100,7 @@ def __init__( super(GethDevNodeGuard, self).__init__(cmd=cmd, termTimeout=termTimeout) self.httpPort = httpPort + self.connTimeout = connTimeout self.w3 = None self.devAccount = None @@ -114,7 +115,7 @@ def Start(self) -> None: web3.HTTPProvider(f'http://127.0.0.1:{self.httpPort}') ) while not self.w3.is_connected(): - if time.time() - startTime >= self.termTimeout: + if time.time() - startTime >= self.connTimeout: raise RuntimeError('failed to connect to the Geth node') time.sleep(connInterval) diff --git a/PyEthHelper/_Meta.py b/PyEthHelper/_Meta.py index 89c0ad5..340781d 100644 --- a/PyEthHelper/_Meta.py +++ b/PyEthHelper/_Meta.py @@ -9,7 +9,7 @@ -__version__ = '0.1.3' +__version__ = '0.1.4' PKG_AUTHOR = 'Languages, Systems, and Data Lab at UC Santa Cruz' PKG_NAME = 'PyEthHelper'