Fix keysend response body type

This commit is contained in:
Stefan Kostic
2022-03-08 01:21:28 +01:00
parent c6b4c3028c
commit 03e44fac58

View File

@@ -84,9 +84,10 @@ func (controller *KeySendController) KeySend(c echo.Context) error {
"message": fmt.Sprintf("Payment failed. Does the receiver have enough inbound capacity? (%v)", err),
})
}
responseBody := &PayInvoiceResponseBody{}
responseBody := &KeySendResponseBody{}
responseBody.RHash = &lib.JavaScriptBuffer{Data: sendPaymentResponse.PaymentHash}
responseBody.Amount = invoice.Amount
responseBody.Destination = invoice.DestinationPubkeyHex
responseBody.Description = invoice.Memo
responseBody.DescriptionHashStr = invoice.DescriptionHash
responseBody.PaymentError = sendPaymentResponse.PaymentError