chainlib-eth

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

commit 2d56b3a3227fcd8c62e0f6f2b98936e7e0ae8377
parent fcb098d66ebc64b65c6d5990326180ae2d29531f
Author: lash <dev@holbrook.no>
Date:   Mon,  6 Feb 2023 04:58:30 +0000

Remote fee lookup when using arg mode

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

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,7 @@ +- 0.4.10 + * Remove rpc lookup when using arg-mode in eth-encode regardless of fee arguments +- 0.4.9 + * Enable contract creation with eth-gas tool when recipient is omitted - 0.4.8 * Add support for dialect differences in tx and block processing - 0.4.7 diff --git a/chainlib/eth/runnable/encode.py b/chainlib/eth/runnable/encode.py @@ -61,6 +61,10 @@ config_dir = os.path.join(script_dir, '..', 'data', 'config') def process_config_local(config, arg, args, flags): config.add(args.signature, '_SIGNATURE', False) config.add(args.contract_args, '_CONTRACT_ARGS', False) + # workaround to avoid rpc lookup of fee parameters when using arg mode + if args.mode == 'arg': + config.add(0, '_FEE_PRICE', True) + config.add(0, '_FEE_LIMIT', True) return config arg_flags = ArgFlag() diff --git a/chainlib/eth/settings.py b/chainlib/eth/settings.py @@ -181,7 +181,6 @@ def process_settings_value(settings, config): updated_value = __calculate_net_amount(settings, config) settings.set('VALUE', updated_value) - return settings diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.4.9 +version = 0.4.10 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no