}
};
- let mut wallet = new_persisted_wallet(network, &mut persister, &wallet_opts)?;
- let blockchain_client =
- new_blockchain_client(&wallet_opts, &wallet, database_path)?;
+ let mut wallet = new_persisted_wallet(network, &mut persister, wallet_opts)?;
+ let blockchain_client = new_blockchain_client(wallet_opts, &wallet, database_path)?;
let result = handle_online_wallet_subcommand(
&mut wallet,
};
#[cfg(not(any(feature = "sqlite", feature = "redb")))]
let result = {
- let wallet = new_wallet(network, &wallet_opts)?;
+ let wallet = new_wallet(network, wallet_opts)?;
let blockchain_client =
- crate::utils::new_blockchain_client(&wallet_opts, &wallet, database_path)?;
- let mut wallet = new_wallet(network, &wallet_opts)?;
+ crate::utils::new_blockchain_client(wallet_opts, &wallet, database_path)?;
+ let mut wallet = new_wallet(network, wallet_opts)?;
handle_online_wallet_subcommand(&mut wallet, blockchain_client, online_subcommand)
.await?
};
};
#[cfg(not(any(feature = "sqlite", feature = "redb")))]
let result = {
- let mut wallet = new_wallet(network, &wallet_opts)?;
+ let mut wallet = new_wallet(network, wallet_opts)?;
handle_offline_wallet_subcommand(
&mut wallet,
- &wallet_opts,
+ wallet_opts,
&cli_opts,
offline_subcommand.clone(),
)?