refactor: use MintUrl::from_str

This commit is contained in:
thesimplekid
2024-09-03 10:56:52 +01:00
parent 125001211c
commit 5f87df2cef
20 changed files with 51 additions and 42 deletions

View File

@@ -141,7 +141,7 @@ async fn main() -> Result<()> {
localstore.clone(),
&mnemonic.to_seed_normalized(""),
None,
);
)?;
if let Some(proxy_url) = args.proxy.as_ref() {
wallet.set_client(HttpClient::with_proxy(proxy_url.clone(), None, true)?);
}

View File

@@ -39,7 +39,7 @@ pub async fn mint(
{
Some(wallet) => wallet.clone(),
None => {
let wallet = Wallet::new(&mint_url.to_string(), unit, localstore, seed, None);
let wallet = Wallet::new(&mint_url.to_string(), unit, localstore, seed, None)?;
multi_mint_wallet.add_wallet(wallet.clone()).await;
wallet

View File

@@ -148,7 +148,7 @@ async fn receive_token(
localstore,
seed,
None,
);
)?;
multi_mint_wallet.add_wallet(wallet).await;
}