blink: return preimage (#447)

This commit is contained in:
callebtc
2024-02-19 20:17:04 +01:00
committed by GitHub
parent 1c2c01ccfa
commit c630fc8c40
2 changed files with 28 additions and 4 deletions

View File

@@ -79,7 +79,12 @@ async def test_blink_pay_invoice():
"data": {
"lnInvoicePaymentSend": {
"status": "SUCCESS",
"transaction": {"settlementFee": 10},
"transaction": {
"settlementFee": 10,
"settlementVia": {
"preImage": "123",
},
},
}
}
}
@@ -163,6 +168,9 @@ async def test_blink_get_payment_status():
"status": "SUCCESS",
"settlementFee": 10,
"direction": "SEND",
"settlementVia": {
"preImage": "123",
},
}
]
}
@@ -175,7 +183,7 @@ async def test_blink_get_payment_status():
assert status.paid
assert status.fee
assert status.fee.amount == 10
assert status.preimage is None
assert status.preimage == "123"
@respx.mock