From 7fc13614753b55cbc35c7c6cc7c6850f50e9f7dd Mon Sep 17 00:00:00 2001 From: calle <93376500+callebtc@users.noreply.github.com> Date: Thu, 4 Aug 2022 17:40:04 +0200 Subject: [PATCH] cln invoice only int (#844) --- lnbits/wallets/cln.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/wallets/cln.py b/lnbits/wallets/cln.py index b136a0c2..a92501f2 100644 --- a/lnbits/wallets/cln.py +++ b/lnbits/wallets/cln.py @@ -84,7 +84,7 @@ class CoreLightningWallet(Wallet): description_hash: Optional[bytes] = None, ) -> InvoiceResponse: label = "lbl{}".format(random.random()) - msat = amount * 1000 + msat: int = int(amount * 1000) try: if description_hash and not self.supports_description_hash: raise Unsupported("description_hash")