chainlib-eth

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

commit 6bc0caaad7442da80742cfcb329cfc6b906fb214
parent 2ef596df8620fc21ca512905f520382f88929a91
Author: nolash <dev@holbrook.no>
Date:   Fri, 10 Dec 2021 02:35:38 +0100

Correct inverted addess checksum check for gas cli

Diffstat:
MCHANGELOG | 4+++-
Mchainlib/eth/runnable/gas.py | 2+-
Msetup.cfg | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ -- 0.0.5-pending +- 0.0.15: + * Correct inverted addess checksum check for gas cli +- 0.0.5-unreleased: * Receive all ethereum components from chainlib package * Make settings configurable diff --git a/chainlib/eth/runnable/gas.py b/chainlib/eth/runnable/gas.py @@ -81,7 +81,7 @@ def main(): g = Gas(chain_spec, signer=signer, gas_oracle=rpc.get_gas_oracle(), nonce_oracle=rpc.get_nonce_oracle()) recipient = to_checksum_address(config.get('_RECIPIENT')) - if not config.true('_UNSAFE') and is_checksum_address(recipient): + if not config.true('_UNSAFE') and not is_checksum_address(recipient): raise ValueError('invalid checksum address') logg.info('gas transfer from {} to {} value {}'.format(signer_address, recipient, value)) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.0.14 +version = 0.0.15 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no