From 4dea83e81abfbe5f04cf90e2d08dc71dfe659655 Mon Sep 17 00:00:00 2001 From: nolash Date: Thu, 14 Jan 2021 11:23:20 +0100 Subject: [PATCH] Include signer fix without spammy logs --- python/eth_address_declarator/runnable/add.py | 4 ++++ python/eth_address_declarator/runnable/deploy.py | 4 +++- python/setup.cfg | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python/eth_address_declarator/runnable/add.py b/python/eth_address_declarator/runnable/add.py index 51c9620..3ee6998 100644 --- a/python/eth_address_declarator/runnable/add.py +++ b/python/eth_address_declarator/runnable/add.py @@ -83,6 +83,10 @@ def main(): c.functions.addDeclaration(args.address, args.declaration).buildTransaction, ], ) + + if block_last: + helper.wait_for() + print(tx_hash) diff --git a/python/eth_address_declarator/runnable/deploy.py b/python/eth_address_declarator/runnable/deploy.py index 2f5f36b..6da9b79 100644 --- a/python/eth_address_declarator/runnable/deploy.py +++ b/python/eth_address_declarator/runnable/deploy.py @@ -87,7 +87,9 @@ def main(): ], force_wait=True, ) - rcpt = w3.eth.getTransactionReceipt(tx_hash) + + if block_last: + helper.wait_for() print(rcpt.contractAddress) diff --git a/python/setup.cfg b/python/setup.cfg index 69d518c..a775b81 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-address-index -version = 0.1.0a1 +version = 0.1.0a4 description = Signed metadata declarations for ethereum addresses author = Louis Holbrook author_email = dev@holbrook.no @@ -30,7 +30,7 @@ packages = eth_token_index.runnable install_requires = web3==5.12.2 - crypto-dev-signer~=0.4.13b2 + crypto-dev-signer~=0.4.13b10 tests_require = eth-tester==0.5.0b2 py-evm==0.3.0a20