cln invoice only int (#844)

This commit is contained in:
calle 2022-08-04 17:40:04 +02:00 committed by GitHub
parent 9b27c2da01
commit 7fc1361475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ class CoreLightningWallet(Wallet):
description_hash: Optional[bytes] = None, description_hash: Optional[bytes] = None,
) -> InvoiceResponse: ) -> InvoiceResponse:
label = "lbl{}".format(random.random()) label = "lbl{}".format(random.random())
msat = amount * 1000 msat: int = int(amount * 1000)
try: try:
if description_hash and not self.supports_description_hash: if description_hash and not self.supports_description_hash:
raise Unsupported("description_hash") raise Unsupported("description_hash")