mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 15:44:50 +01:00
refactor: wallet clean up
This commit is contained in:
@@ -28,8 +28,8 @@ pub async fn mint(wallet: Wallet, sub_command_args: &MintSubCommand) -> Result<(
|
||||
let quote = wallet
|
||||
.mint_quote(
|
||||
mint_url.clone(),
|
||||
Amount::from(sub_command_args.amount),
|
||||
CurrencyUnit::from(&sub_command_args.unit),
|
||||
Amount::from(sub_command_args.amount),
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
||||
@@ -146,10 +146,10 @@ pub async fn send(wallet: Wallet, sub_command_args: &SendSubCommand) -> Result<(
|
||||
.send(
|
||||
&mint_url,
|
||||
CurrencyUnit::Sat,
|
||||
sub_command_args.memo.clone(),
|
||||
token_amount,
|
||||
&SplitTarget::default(),
|
||||
sub_command_args.memo.clone(),
|
||||
conditions,
|
||||
&SplitTarget::default(),
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user