Skip to content

Commit

Permalink
fix: wallet doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Dec 16, 2024
1 parent 4051e49 commit e8bc365
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/cdk/src/wallet/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Wallet {
/// let wallet = Wallet::new(mint_url, unit, Arc::new(localstore), &seed, None)?;
/// let amount = Amount::from(100);
///
/// let quote = wallet.mint_quote(amount, None, None).await?;
/// let quote = wallet.mint_quote(amount, None).await?;
/// Ok(())
/// }
/// ```
Expand Down Expand Up @@ -159,12 +159,10 @@ impl Wallet {
/// let wallet = Wallet::new(mint_url, unit, Arc::new(localstore), &seed, None).unwrap();
/// let amount = Amount::from(100);
///
/// let quote = wallet.mint_quote(amount, None, None).await?;
/// let quote = wallet.mint_quote(amount, None).await?;
/// let quote_id = quote.id;
/// // To be called after quote request is paid
/// let amount_minted = wallet
/// .mint(&quote_id, SplitTarget::default(), None, None)
/// .await?;
/// let amount_minted = wallet.mint(&quote_id, SplitTarget::default(), None).await?;
///
/// Ok(())
/// }
Expand Down

0 comments on commit e8bc365

Please sign in to comment.