fix WALLET initialisation

This commit is contained in:
dni ⚡
2022-10-05 13:05:09 +02:00
parent 030d3b34d8
commit c845502f28
8 changed files with 23 additions and 11 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ from pydantic import BaseModel
from lnbits.db import Connection
from lnbits.helpers import url_for
from lnbits.settings import WALLET
from lnbits.settings import get_wallet_class
from lnbits.wallets.base import PaymentStatus
@@ -163,6 +163,7 @@ class Payment(BaseModel):
f"Checking {'outgoing' if self.is_out else 'incoming'} pending payment {self.checking_id}"
)
WALLET = get_wallet_class()
if self.is_out:
status = await WALLET.get_payment_status(self.checking_id)
else: