diff --git a/crates/cdk/src/wallet/client.rs b/crates/cdk/src/wallet/client.rs index 16b5bd110..68659134c 100644 --- a/crates/cdk/src/wallet/client.rs +++ b/crates/cdk/src/wallet/client.rs @@ -148,7 +148,7 @@ impl HttpClient { amount: Amount, unit: CurrencyUnit, description: Option, - ) -> Result { + ) -> Result { let url = mint_url.join_paths(&["v1", "mint", "quote", "bolt12"])?; let request = MintQuoteBolt11Request { @@ -162,7 +162,7 @@ impl HttpClient { let res = res.json::().await?; - match serde_json::from_value::(res.clone()) { + match serde_json::from_value::(res.clone()) { Ok(mint_quote_response) => Ok(mint_quote_response), Err(err) => { tracing::warn!("{}", err); diff --git a/crates/cdk/src/wallet/mint_bolt12.rs b/crates/cdk/src/wallet/mint_bolt12.rs index bfc87ec0c..28f5876de 100644 --- a/crates/cdk/src/wallet/mint_bolt12.rs +++ b/crates/cdk/src/wallet/mint_bolt12.rs @@ -53,7 +53,7 @@ impl Wallet { amount, unit, request: quote_res.request, - state: quote_res.state, + state: crate::nuts::MintQuoteState::Unpaid, expiry: quote_res.expiry.unwrap_or(0), amount_minted: Amount::ZERO, amount_paid: Amount::ZERO,