Enable call when wallet set for encode cli command

This commit is contained in:
nolash 2021-11-15 14:29:20 +01:00
parent d3c73c7e5b
commit 6474a2399a
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 5 additions and 3 deletions

View File

@ -55,12 +55,14 @@ 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.add_argument('--notx', type=str, help='Network send is not a transaction')
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()
extra_args = {
'signature': None,
'contract_args': None,
'notx': None,
}
config = chainlib.eth.cli.Config.from_args(args, arg_flags, extra_args=extra_args, default_config_dir=config_dir)
@ -109,7 +111,7 @@ def main():
exec_address = add_0x(to_checksum_address(config.get('_EXEC_ADDRESS')))
if signer == None:
if signer == None or config.true('_NOTX'):
c = TxFactory(chain_spec)
j = JSONRPCRequest(id_generator=rpc.id_generator)
o = j.template()

View File

@ -3,5 +3,5 @@ pysha3==1.0.2
hexathon~=0.1.0
websocket-client==0.57.0
potaahto~=0.1.0
chainlib==0.0.11
chainlib~=0.0.12
confini~=0.5.1

View File

@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
version = 0.0.11
version = 0.0.13a1
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no