Merge pull request #33 from DanielUhlik/main

fix reading invoice amount in nut08
This commit is contained in:
thesimplekid
2023-09-29 06:14:08 +01:00
committed by GitHub

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),
}
}