From 6bc0caaad7442da80742cfcb329cfc6b906fb214 Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 10 Dec 2021 02:35:38 +0100 Subject: [PATCH] Correct inverted addess checksum check for gas cli --- CHANGELOG | 4 +++- chainlib/eth/runnable/gas.py | 2 +- setup.cfg | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0aaeda4..fceabd2 100644 --- 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 index 5a48929..8540590 100644 --- 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 index 19751ef..7faeacf 100644 --- 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