From d09e624eb62ef5f983877c36263fe71bc1d0ea27 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 31 Aug 2020 16:19:27 -0300 Subject: [PATCH] fix: wallet.balance computed property self-reference. --- lnbits/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/models.py b/lnbits/core/models.py index 5ee08683d..f3d5fbda3 100644 --- a/lnbits/core/models.py +++ b/lnbits/core/models.py @@ -27,7 +27,7 @@ class Wallet(NamedTuple): @property def balance(self) -> int: - return self.balance // 1000 + return self.balance_msat // 1000 def get_payment(self, checking_id: str) -> Optional["Payment"]: from .crud import get_wallet_payment