diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 4543afbe..66471086 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -289,13 +289,13 @@ async def api_payments_pay_lnurl( if invoice.amount_msat != data.amount: raise HTTPException( status_code=HTTPStatus.BAD_REQUEST, - detail=f"{domain} returned an invalid invoice. Expected {data['amount']} msat, got {invoice.amount_msat}.", + detail=f"{domain} returned an invalid invoice. Expected {data.amount} msat, got {invoice.amount_msat}.", ) if invoice.description_hash != data.description_hash: raise HTTPException( status_code=HTTPStatus.BAD_REQUEST, - detail=f"{domain} returned an invalid invoice. Expected description_hash == {data['description_hash']}, got {invoice.description_hash}.", + detail=f"{domain} returned an invalid invoice. Expected description_hash == {data.description_hash}, got {invoice.description_hash}.", ) extra = {} diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index 409e4fba..d47f2e67 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -57,7 +57,6 @@ class FakeWallet(Wallet): ).hexdigest() data["paymenthash"] = randomHash payment_request = encode(data) - print(payment_request) checking_id = randomHash return InvoiceResponse(True, checking_id, payment_request)