chainlib

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

commit 1680f00e0eb55d91a78e635ce4b01a7e34d8abae
parent 0c90c50ee8b6ea8a9ee512a636851796d3435549
Author: lash <dev@holbrook.no>
Date:   Thu, 16 Feb 2023 06:24:49 +0000

Handle keyerror for unsigned address in cli/pc

Diffstat:
MCHANGELOG | 2++
Mchainlib/cli/rpc.py | 7+++----
Msetup.cfg | 2+-
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.4.10 + * Fix remaining unsigned address key error in rpc cli handler - 0.4.9 * Handle missing unsigned sender address in settings when wallet key set - 0.4.8 diff --git a/chainlib/cli/rpc.py b/chainlib/cli/rpc.py @@ -68,15 +68,14 @@ class Rpc: if self.wallet.signer != None: self.sender_address = self.wallet.signer_address - elif config.get('_UNSIGNED_SENDER_ADDRESS') != None: + else: try: self.sender_address = config.get('_UNSIGNED_SENDER_ADDRESS') + logg.debug('default sender address {}'.format(self.sender_address)) except KeyError: pass except ValueError: - pass - logg.debug('default sender address {} {}'.format(self.default_sender_address, self.sender_address)) - + pass return self.conn 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.9 +version=0.4.10 url=https://git.defalsify.org/chainlib author=Louis Holbrook