mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-27 08:49:27 +01:00
Merge pull request #33 from DanielUhlik/main
fix reading invoice amount in nut08
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