fix reading invoice value

This commit is contained in:
Daniel Uhlík
2023-09-28 23:27:17 +02:00
parent 4a9101443f
commit 4eaa9a6731

View File

@@ -26,7 +26,7 @@ impl MeltRequest {
pub fn invoice_amount(&self) -> Result<Amount, Error> {
match self.pr.amount_milli_satoshis() {
Some(value) => Ok(Amount::from_sat(value)),
Some(value) => Ok(Amount::from_msat(value)),
None => Err(Error::InvoiceAmountUndefined),
}
}