fix: wallet.balance computed property self-reference.
This commit is contained in:
@@ -27,7 +27,7 @@ class Wallet(NamedTuple):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def balance(self) -> int:
|
def balance(self) -> int:
|
||||||
return self.balance // 1000
|
return self.balance_msat // 1000
|
||||||
|
|
||||||
def get_payment(self, checking_id: str) -> Optional["Payment"]:
|
def get_payment(self, checking_id: str) -> Optional["Payment"]:
|
||||||
from .crud import get_wallet_payment
|
from .crud import get_wallet_payment
|
||||||
|
|||||||
Reference in New Issue
Block a user