From 75c72b78283f2bd1e784ed16ccce0dc0789d7258 Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 6 Oct 2021 07:13:05 +0200 Subject: [PATCH] Incorporate reset method for arg flags --- chainlib/eth/cli.py | 1 + chainlib/eth/runnable/encode.py | 1 - chainlib/eth/runnable/raw.py | 3 --- requirements.txt | 2 +- setup.cfg | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/chainlib/eth/cli.py b/chainlib/eth/cli.py index 985f1ef..6b32162 100644 --- a/chainlib/eth/cli.py +++ b/chainlib/eth/cli.py @@ -8,6 +8,7 @@ from chainlib.cli import ( argflag_std_read, argflag_std_write, argflag_std_base, + reset as argflag_reset, Config as BaseConfig, Wallet as BaseWallet, Rpc as BaseRpc, Flag, diff --git a/chainlib/eth/runnable/encode.py b/chainlib/eth/runnable/encode.py index 0c8d2af..d0ab4a8 100644 --- a/chainlib/eth/runnable/encode.py +++ b/chainlib/eth/runnable/encode.py @@ -59,7 +59,6 @@ config_dir = os.path.join(script_dir, '..', 'data', 'config') arg_flags = chainlib.eth.cli.argflag_std_write | chainlib.eth.cli.Flag.EXEC argparser = chainlib.eth.cli.ArgumentParser(arg_flags) -argparser = chainlib.eth.cli.ArgumentParser(arg_flags) argparser.add_argument('--signature', type=str, help='Method signature to encode') argparser.add_argument('contract_args', type=str, nargs='*', help='arguments to encode') args = argparser.parse_args() diff --git a/chainlib/eth/runnable/raw.py b/chainlib/eth/runnable/raw.py index 7f92996..4cd3dd5 100644 --- a/chainlib/eth/runnable/raw.py +++ b/chainlib/eth/runnable/raw.py @@ -66,9 +66,6 @@ conn = rpc.connect_by_config(config) send = config.true('_RPC_SEND') -#if config.get('_EXEC_ADDRESS') != None: -# send = False - chain_spec = None try: chain_spec = ChainSpec.from_chain_str(config.get('CHAIN_SPEC')) diff --git a/requirements.txt b/requirements.txt index 4d12f7a..3ba976b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ pysha3==1.0.2 hexathon~=0.0.1a8 websocket-client==0.57.0 potaahto~=0.0.1a1 -chainlib==0.0.9a11 +chainlib==0.0.9rc1 confini>=0.4.1a1,<0.5.0 diff --git a/setup.cfg b/setup.cfg index d41a8d7..d9de2e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.0.9a16 +version = 0.0.9rc1 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no