black formating
This commit is contained in:
parent
9a17e4896b
commit
a80fd5de7a
5 changed files with 18 additions and 19 deletions
|
|
@ -9,6 +9,7 @@ import httpx
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from websockets import connect # type: ignore
|
from websockets import connect # type: ignore
|
||||||
|
|
||||||
# TODO: https://github.com/lnbits/lnbits-legend/issues/764
|
# TODO: https://github.com/lnbits/lnbits-legend/issues/764
|
||||||
# mypy https://github.com/aaugustin/websockets/issues/940
|
# mypy https://github.com/aaugustin/websockets/issues/940
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,9 +81,7 @@ class FakeWallet(Wallet):
|
||||||
async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse:
|
async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse:
|
||||||
invoice = decode(bolt11)
|
invoice = decode(bolt11)
|
||||||
# TODO: no data here?
|
# TODO: no data here?
|
||||||
data: Dict = {
|
data: Dict = {"privkey": "missing"}
|
||||||
"privkey": "missing"
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
invoice.checking_id is not None
|
invoice.checking_id is not None
|
||||||
and invoice.checking_id[6:] == data["privkey"][:6]
|
and invoice.checking_id[6:] == data["privkey"][:6]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue