tfollow-up a4b24df4bb123db86d0d75113b889c2453bdf25f - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c3504cec94c01ecdcdb10ab2f76e0736d75e2b32 DIR parent 073a09f9261fb6d9f3c6240983225450f9ef7d03 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 3 Sep 2019 17:53:11 +0200 follow-up a4b24df4bb123db86d0d75113b889c2453bdf25f Diffstat: M electrum/lnworker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -980,13 +980,13 @@ class LNWallet(LNWorker): invoice, direction, is_paid = self.invoices[key] status = self.get_invoice_status(key) lnaddr = lndecode(invoice, expected_hrp=constants.net.SEGWIT_HRP) - amount_sat = lnaddr.amount*COIN if lnaddr.amount else None + amount_sat = int(lnaddr.amount*COIN) if lnaddr.amount else None description = lnaddr.get_description() timestamp = lnaddr.date return { 'type': PR_TYPE_LN, 'status': status, - 'amount': int(amount_sat), + 'amount': amount_sat, 'time': timestamp, 'exp': lnaddr.get_expiry(), 'message': description,