Simplify MintUrl, use it directly in wallet/client.rs

This commit is contained in:
ok300
2024-10-20 19:33:22 +02:00
parent f6533a08de
commit 98c94e28bb
12 changed files with 52 additions and 122 deletions

View File

@@ -6,7 +6,6 @@ use url::Url;
#[derive(Args)]
pub struct MintInfoSubcommand {
/// Cashu Token
mint_url: MintUrl,
}
@@ -17,7 +16,7 @@ pub async fn mint_info(proxy: Option<Url>, sub_command_args: &MintInfoSubcommand
};
let info = client
.get_mint_info(sub_command_args.mint_url.clone().try_into()?)
.get_mint_info(sub_command_args.mint_url.clone())
.await?;
println!("{:#?}", info);