Correct inverted addess checksum check for gas cli

This commit is contained in:
nolash 2021-12-10 02:35:38 +01:00
parent 2ef596df86
commit 6bc0caaad7
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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))

View File

@ -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