mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-24 08:05:02 +01:00
update lnbits-rs to 0.5.0
This commit is contained in:
@@ -21,5 +21,5 @@ tokio.workspace = true
|
||||
tokio-util.workspace = true
|
||||
tracing.workspace = true
|
||||
thiserror.workspace = true
|
||||
lnbits-rs = "0.4.0"
|
||||
lnbits-rs = "0.5.0"
|
||||
serde_json.workspace = true
|
||||
|
||||
@@ -276,7 +276,10 @@ impl MintPayment for LNbits {
|
||||
Self::Err::Anyhow(anyhow!("Could not create invoice"))
|
||||
})?;
|
||||
|
||||
let request: Bolt11Invoice = create_invoice_response.payment_request.parse()?;
|
||||
let request: Bolt11Invoice = create_invoice_response
|
||||
.bolt11()
|
||||
.ok_or_else(|| Self::Err::Anyhow(anyhow!("Missing bolt11 invoice")))?
|
||||
.parse()?;
|
||||
let expiry = request.expires_at().map(|t| t.as_secs());
|
||||
|
||||
Ok(CreateIncomingPaymentResponse {
|
||||
|
||||
Reference in New Issue
Block a user