chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 0c90c50ee8b6ea8a9ee512a636851796d3435549
parent b5ffc4cb57fe08e9aecfbc5c9c1a611176eada04
Author: lash <dev@holbrook.no>
Date:   Tue, 14 Feb 2023 10:44:03 +0000

Handle missing unsigned address param when using keyfile

Diffstat:
MCHANGELOG | 2++
Mchainlib/settings.py | 7++++++-
Msetup.cfg | 2+-
3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.4.9 + * Handle missing unsigned sender address in settings when wallet key set - 0.4.8 * Introduce scheme to detect chainlib 'capable' modules. * Add chainlib-gen tool to generate contract bytecode, constructor bytecode and other contract context data from chainlib modules. diff --git a/chainlib/settings.py b/chainlib/settings.py @@ -45,7 +45,12 @@ def process_settings_common(settings, config): def process_settings_signer_check(settings, config): - if config.get('WALLET_KEY_FILE') != None and config.get('_UNSIGNED_SENDER_ADDRESS') != None: + unsigned_address = None + try: + unsigned_address = config.get('_UNSIGNED_SENDER_ADDRESS') + except KeyError: + pass + if config.get('WALLET_KEY_FILE') != None and unsigned_address != None: logg.warning('misconfigured client has both wallet key file and signed sender options set') return settings diff --git a/setup.cfg b/setup.cfg @@ -3,7 +3,7 @@ name=chainlib license=AGPLv3+ author_email=dev@holbrook.no description=Generic blockchain access library and tooling -version=0.4.8 +version=0.4.9 url=https://git.defalsify.org/chainlib author=Louis Holbrook