chainlib-eth

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

commit 7ed616a13d96e413f8e8d2f12327b5ee395ac825
parent f22115ff8c9545046293458c96787478a0dc3058
Author: lash <dev@holbrook.no>
Date:   Fri, 13 May 2022 07:49:15 +0000

Add contract process settings

Diffstat:
Mchainlib/eth/runnable/gas.py | 4++--
Mchainlib/eth/settings.py | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/chainlib/eth/runnable/gas.py b/chainlib/eth/runnable/gas.py @@ -64,7 +64,6 @@ argparser.add_argument('amount', type=str, help='Token amount to send') args = argparser.parse_args() logg = process_log(args, logg) -logg.debug('flags {} {} {}'.format(flags, arg_flags.SEQ, flags & arg_flags.SEQ)) config = Config() config = process_config(config, arg, args, flags) @@ -99,7 +98,6 @@ def main(): if not config.true('_UNSAFE') and not is_checksum_address(recipient): raise ValueError('invalid checksum address') - logg.info('gas transfer from {} to {} value {}'.format(settings.get('SENDER_ADDRESS'), settings.get('RECIPIENT'), settings.get('VALUE'))) if logg.isEnabledFor(logging.DEBUG): try: sender_balance = balance( @@ -125,6 +123,8 @@ def main(): id_generator=settings.get('RPC_ID_GENERATOR'), ) + logg.info('gas transfer from {} to {} value {} hash {} nonce {}'.format(settings.get('SENDER_ADDRESS'), settings.get('RECIPIENT'), settings.get('VALUE'), tx_hash_hex, o['nonce'])) + if settings.get('RPC_SEND'): settings.get('CONN').do(o) if config.true('_WAIT'): diff --git a/chainlib/eth/settings.py b/chainlib/eth/settings.py @@ -145,4 +145,5 @@ def process_settings(settings, config): settings = process_settings_blockspec(settings, config) settings = process_settings_data(settings, config) settings = process_settings_hash(settings, config) + settings = process_settings_contract(settings, config) return settings