feat: new struct 'MintUrl' which trims trailing slashes (#283)

https://github.com/cashubtc/nuts/pull/151/files
This commit is contained in:
Caleb Beery
2024-08-12 12:32:44 -07:00
committed by GitHub
parent e57c7f1e9d
commit 40554987e1
28 changed files with 385 additions and 229 deletions

View File

@@ -1,5 +1,5 @@
use anyhow::Result;
use cdk::url::UncheckedUrl;
use cdk::mint_url::MintUrl;
use cdk::HttpClient;
use clap::Args;
use url::Url;
@@ -7,7 +7,7 @@ use url::Url;
#[derive(Args)]
pub struct MintInfoSubcommand {
/// Cashu Token
mint_url: UncheckedUrl,
mint_url: MintUrl,
}
pub async fn mint_info(proxy: Option<Url>, sub_command_args: &MintInfoSubcommand) -> Result<()> {