mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
refactor: use MintUrl::from_str
This commit is contained in:
@@ -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)?);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -148,7 +148,7 @@ async fn receive_token(
|
||||
localstore,
|
||||
seed,
|
||||
None,
|
||||
);
|
||||
)?;
|
||||
multi_mint_wallet.add_wallet(wallet).await;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user