Correct inverted addess checksum check for gas cli
This commit is contained in:
parent
2ef596df86
commit
6bc0caaad7
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user