format file
This commit is contained in:
parent
a8e0b5a5ac
commit
4c71d5ac42
1 changed files with 4 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ from typing import AsyncGenerator, Dict, Optional
|
||||||
import httpx
|
import httpx
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from lnbits.settings import settings
|
|
||||||
from lnbits import bolt11
|
from lnbits import bolt11
|
||||||
|
from lnbits.settings import settings
|
||||||
|
|
||||||
from .base import (
|
from .base import (
|
||||||
InvoiceResponse,
|
InvoiceResponse,
|
||||||
|
|
@ -90,7 +90,9 @@ class ZBDWallet(Wallet):
|
||||||
payment_request = data["invoice"]["request"]
|
payment_request = data["invoice"]["request"]
|
||||||
return InvoiceResponse(True, checking_id, payment_request, None)
|
return InvoiceResponse(True, checking_id, payment_request, None)
|
||||||
|
|
||||||
async def pay_invoice(self, bolt11_invoice: str, fee_limit_msat: int) -> PaymentResponse:
|
async def pay_invoice(
|
||||||
|
self, bolt11_invoice: str, fee_limit_msat: int
|
||||||
|
) -> PaymentResponse:
|
||||||
# https://api.zebedee.io/v0/payments
|
# https://api.zebedee.io/v0/payments
|
||||||
r = await self.client.post(
|
r = await self.client.post(
|
||||||
"payments",
|
"payments",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue