mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
fix reading invoice value
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user