From 73989e7a1b80fde859dcf3ec494ada62dfd77c59 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 30 May 2024 13:08:13 +0000 Subject: [PATCH] bip21: trivial follow-up follow-up bb4ee2b50bd988326f892752574cbec94bb5a9b9 --- electrum/bip21.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/bip21.py b/electrum/bip21.py index a9085c97a..254edbb4a 100644 --- a/electrum/bip21.py +++ b/electrum/bip21.py @@ -92,7 +92,7 @@ def parse_bip21_URI(uri: str) -> dict: amount_sat = out.get('amount') if amount_sat: # allow small leeway due to msat precision - if lnaddr.get_amount_msat() is None or abs(amount_sat - int(lnaddr.get_amount_sat())) > 1: + if lnaddr.get_amount_sat() is None or abs(amount_sat - int(lnaddr.get_amount_sat())) > 1: raise InvalidBitcoinURI("Inconsistent lightning field in bip21: amount") address = out.get('address') ln_fallback_addr = lnaddr.get_fallback_address()