chainlib-eth

Ethereum implementation of the chainlib interface
Log | Files | Refs | README | LICENSE

commit 976669f1d02aa499ba960524c3b82f23ef7b016f
parent 196f5537fc14807dae57c43877ef6d06c48369db
Author: lash <dev@holbrook.no>
Date:   Sat, 11 Feb 2023 19:10:32 +0000

Add wait to encode cli command

Diffstat:
MCHANGELOG | 2++
Mchainlib/eth/runnable/encode.py | 7++++++-
Msetup.cfg | 2+-
3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.4.14 + * Enable wait on eth-encode - 0.4.13 * Enable send from eth-encode - 0.4.12 diff --git a/chainlib/eth/runnable/encode.py b/chainlib/eth/runnable/encode.py @@ -231,7 +231,12 @@ def main(): (tx_hash_hex, o) = c.finalize(tx, tx_format=tx_format) if settings.get('RPC_SEND'): r = conn.do(o) - print(r) + if settings.get('WAIT'): + r = conn.wait(tx_hash_hex) + if r['status'] == 0: + logg.critical('VM revert. Wish I could tell you more') + sys.exit(1) + print(tx_hash_hex) else: if config.get('_RAW'): o = strip_0x(o) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.4.13 +version = 0.4.14 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no