feat: add unit to PayInvoiceResponse

This commit is contained in:
thesimplekid
2024-09-14 11:25:58 +01:00
parent eae57eae02
commit fba609f28a
8 changed files with 11 additions and 3 deletions

View File

@@ -200,8 +200,9 @@ impl MintLightning for Lnd {
Ok(PayInvoiceResponse {
payment_hash: hex::encode(payment_response.payment_hash),
payment_preimage: Some(hex::encode(payment_response.payment_preimage)),
status: MeltQuoteState::Pending,
status: MeltQuoteState::Paid,
total_spent: total_spent.into(),
unit: CurrencyUnit::Sat,
})
}