From 3eddc17e21f1dca93b3d99c61e80ae2c717ae280 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 19 May 2022 19:30:11 +0200 Subject: [PATCH] util.parse_URI: fix typo --- electrum/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/util.py b/electrum/util.py index 4c30d681c..7a0044501 100644 --- a/electrum/util.py +++ b/electrum/util.py @@ -1009,7 +1009,7 @@ def parse_URI(uri: str, on_pr: Callable = None, *, loop=None) -> dict: try: lnaddr = lndecode(out['lightning']) amount_sat = out.get('amount') - if amount: + if amount_sat: assert int(lnaddr.get_amount_sat()) == amount_sat address = out.get('address') if address: