Skip to content

Commit

Permalink
fix amount_msat typo in LnInvoiceInfo
Browse files Browse the repository at this point in the history
Signed-off-by: dzdidi <[email protected]>
  • Loading branch information
dzdidi committed Jul 1, 2024
1 parent fa9400c commit e87cb36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lampo-common/src/model/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub mod response {
pub routes: Vec<String>,
pub hints: Vec<String>,
pub network: String,
pub amount_msa: Option<u64>,
pub amount_msat: Option<u64>,
}

#[derive(Serialize, Deserialize, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion lampod/src/jsonrpc/offchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn json_decode_invoice(ctx: &LampoDaemon, request: &json::Value) -> Result<j
.offchain_manager()
.decode_invoice(&request.invoice_str)?;
let invoice = InvoiceInfo {
amount_msa: invoice.amount_milli_satoshis(),
amount_msat: invoice.amount_milli_satoshis(),
network: invoice.network().to_string(),
description: match invoice.description() {
ldk::invoice::Bolt11InvoiceDescription::Direct(dec) => dec.to_string(),
Expand Down

0 comments on commit e87cb36

Please sign in to comment.