chainlib-eth

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

commit f56263db4b4257ed93974be07f5d5dbd212bdde0
parent 2d56b3a3227fcd8c62e0f6f2b98936e7e0ae8377
Author: lash <dev@holbrook.no>
Date:   Tue,  7 Feb 2023 06:15:59 +0000

Remove useless null arg

Diffstat:
Mchainlib/eth/cli/arg.py | 36++++++++++++++++++------------------
Mchainlib/eth/cli/config.py | 4++--
Mchainlib/eth/settings.py | 1-
3 files changed, 20 insertions(+), 21 deletions(-)

diff --git a/chainlib/eth/cli/arg.py b/chainlib/eth/cli/arg.py @@ -1,22 +1,22 @@ -from chainlib.cli.arg import ( - ArgumentParser, - Arg as BaseArg, - ArgFlag as BaseArgFlag, - process_args, - stdin_arg, - ) +from chainlib.cli.arg import ArgFlag as BaseArgFlag +from chainlib.cli.arg import Arg as BaseArg +from chainlib.cli.arg import ArgumentParser +from chainlib.cli.arg import process_args +from chainlib.cli.arg import stdin_arg class ArgFlag(BaseArgFlag): - - def __init__(self): - super(ArgFlag, self).__init__() - - self.add('create') - - + pass +# +# def __init__(self): +# super(ArgFlag, self).__init__() +# +# self.add('create') +# +# class Arg(BaseArg): - - def __init__(self, flags): - super(Arg, self).__init__(flags) - self.add_long('null', 'create', typ=bool, help='Send to null-address (contract creation). Same as -a null.') + pass +# +# def __init__(self, flags): +# super(Arg, self).__init__(flags) +# self.add_long('null', 'create', typ=bool, help='Send to null-address (contract creation). Same as -a null or omitting -a.') diff --git a/chainlib/eth/cli/config.py b/chainlib/eth/cli/config.py @@ -31,8 +31,8 @@ def process_config(config, arg, args, flags, positional_name=None): ]: raise ValueError('unknown rpc dialect {}'.format(config.get('RPC_DIALECT'))) - if arg.match('create', flags): - config.add(getattr(args, 'null'), '_NULL') + #if arg.match('create', flags): + # config.add(getattr(args, 'null'), '_NULL') return config diff --git a/chainlib/eth/settings.py b/chainlib/eth/settings.py @@ -160,7 +160,6 @@ def process_settings_contract(settings, config): return settings - def process_settings_data(settings, config): data = None try: