Browse Source

bip21: trivial follow-up

follow-up bb4ee2b50b
master
SomberNight 2 years ago
parent
commit
73989e7a1b
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/bip21.py

2
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()

Loading…
Cancel
Save