From 0043beb07be48479079de551dbb57978033b6d3e Mon Sep 17 00:00:00 2001 From: nolash Date: Tue, 9 Feb 2021 19:28:50 +0100 Subject: [PATCH] Add wait to token index add --- python/eth_address_declarator/runnable/add.py | 3 ++- python/eth_token_index/runnable/add.py | 5 ++++- python/setup.cfg | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python/eth_address_declarator/runnable/add.py b/python/eth_address_declarator/runnable/add.py index 3ee6998..2978f2f 100644 --- a/python/eth_address_declarator/runnable/add.py +++ b/python/eth_address_declarator/runnable/add.py @@ -46,8 +46,9 @@ if args.vv: elif args.v: logg.setLevel(logging.INFO) -block_last = args.w + block_all = args.ww +block_last = args.w or block_all w3 = web3.Web3(web3.Web3.HTTPProvider(args.p)) diff --git a/python/eth_token_index/runnable/add.py b/python/eth_token_index/runnable/add.py index df21f12..888051b 100644 --- a/python/eth_token_index/runnable/add.py +++ b/python/eth_token_index/runnable/add.py @@ -46,8 +46,8 @@ if args.vv: elif args.v: logg.setLevel(logging.INFO) -block_last = args.w block_all = args.ww +block_last = args.w or block_all w3 = web3.Web3(web3.Web3.HTTPProvider(args.p)) @@ -96,6 +96,9 @@ def main(): ], ) + if block_last: + helper.wait_for() + print(tx_hash) diff --git a/python/setup.cfg b/python/setup.cfg index f2d3e97..e4e1d67 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-address-index -version = 0.1.0a7 +version = 0.1.0a8 description = Signed metadata declarations for ethereum addresses author = Louis Holbrook author_email = dev@holbrook.no