You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get to the preimage from the payment result of send_payment, the caller has to match the type of payment.details because the PaymentDetails are an enum:
To get to the preimage from the
payment
result ofsend_payment
, the caller has to match the type ofpayment.details
because thePaymentDetails
are an enum:However we know this could only have been a
LnPaymentDetails
.We should simplify this.
Maybe construct a user-facing struct
LnPayment
, that is identical toPayment
except it maps the details toLnPaymentDetails
?The text was updated successfully, but these errors were encountered: