Skip to content

Commit 46c8975

Browse files
authored
Merge pull request #6 from DoktorShift/update_v1
payrequest fix
2 parents 1a2f37a + 62a66f4 commit 46c8975

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lnurl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def lnurl_callback(
136136
return {"status": "ERROR", "reason": f"Amount mismatch. Expected {payment.sats} msats."}
137137

138138
try:
139-
payment_hash, payment_request = await create_invoice(
139+
invoice = await create_invoice(
140140
wallet_id=device.wallet,
141141
amount=int(amount / 1000),
142142
memo=create_payment_memo(device, switch),
@@ -155,10 +155,10 @@ async def lnurl_callback(
155155
},
156156
)
157157

158-
await update_payment(payment_id=paymentid, payhash=payment_hash)
158+
await update_payment(payment_id=paymentid, payhash=invoice.payment_hash)
159159

160160
return {
161-
"pr": payment_request,
161+
"pr": invoice.bolt11,
162162
"routes": [],
163163
}
164164
except Exception as e:

0 commit comments

Comments
 (0)