Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Sep 18, 2023
1 parent 31c5118 commit d8f5ba5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions moksha-mint/src/strike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ impl StrikeClient {
}

pub async fn create_ln_payment_quote(&self, bolt11: &str) -> Result<String, StrikeError> {
let endpoint = format!("v1/payment-quotes/lightning");
let params = serde_json::json!({
"lnInvoice": bolt11,
"sourceCurrency": "BTC",
});
let body = self
.make_post(&endpoint, &serde_json::to_string(&params)?)
.make_post(
"v1/payment-quotes/lightning",
&serde_json::to_string(&params)?,
)
.await?;
let response: serde_json::Value = serde_json::from_str(&body)?;
let payment_quote_id = response["paymentQuoteId"]
Expand Down

0 comments on commit d8f5ba5

Please sign in to comment.