commit f22115ff8c9545046293458c96787478a0dc3058
parent 7ea2b43d60c9f16f2b42b2d73964b97ebff96708
Author: lash <dev@holbrook.no>
Date: Thu, 12 May 2022 18:42:33 +0000
Fix bug in handling of data and recipeint inputs
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/chainlib/eth/settings.py b/chainlib/eth/settings.py
@@ -71,6 +71,7 @@ def process_settings_wallet(settings, config):
if wallet.get_signer_address() == None and recipient_in != None:
recipient_in = wallet.from_address(recipient_in)
+ recipient_in = strip_0x(recipient_in)
recipient = to_checksum_address(recipient_in)
if not config.true('_UNSAFE') and recipient != recipient_in:
raise ValueError('invalid checksum address: {}'.format(recipient_in))
@@ -104,7 +105,10 @@ def process_settings_data(settings, config):
except KeyError:
return settings
- data = add_0x(config.get('_DATA'))
+ if data == None:
+ return settings
+
+ data = add_0x(data)
settings.set('DATA', data)
return settings
diff --git a/requirements.txt b/requirements.txt
@@ -4,4 +4,3 @@ hexathon~=0.1.7
websocket-client==0.57.0
potaahto~=0.1.1
chainlib~=0.3.0
-confini~=0.6.0