From 700b7da07858742335dbe4092860adca47e25d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 15 Apr 2024 09:23:38 +0200 Subject: [PATCH 1/2] rename get wallet class --- views_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views_api.py b/views_api.py index f69ced9..a1011fb 100644 --- a/views_api.py +++ b/views_api.py @@ -10,7 +10,7 @@ from lnbits.core.crud import get_payments from lnbits.core.services import create_invoice, pay_invoice from lnbits.decorators import WalletTypeInfo -from lnbits.settings import get_wallet_class, settings +from lnbits.settings import get_funding_source, settings from . import lndhub_ext from .decorators import check_wallet, require_admin_key @@ -165,7 +165,7 @@ async def lndhub_getuserinvoices( limit: int = Query(20, ge=1, le=200), offset: int = Query(0, ge=0), ): - WALLET = get_wallet_class() + funding_source = get_funding_source() for invoice in await get_payments( wallet_id=wallet.wallet.id, complete=False, @@ -177,7 +177,7 @@ async def lndhub_getuserinvoices( exclude_uncheckable=True, ): await invoice.set_pending( - (await WALLET.get_invoice_status(invoice.checking_id)).pending + (await funding_source.invoice_status(invoice.checking_id)).pending ) return [ From f6000da6efe79cb9a7f9d0af8cd13338fd91cf59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 15 Apr 2024 09:24:47 +0200 Subject: [PATCH 2/2] minversion --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index c6e0952..6d6d625 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,5 @@ "short_description": "Access lnbits from BlueWallet or Zeus", "tile": "/lndhub/static/image/lndhub.png", "contributors": ["fiatjaf"], - "min_lnbits_version": "0.11.0" + "min_lnbits_version": "0.12.6" }