Cleaning up

This commit is contained in:
Anynomouss
2025-03-01 14:23:39 +01:00
parent b45b603382
commit fe86c7a7e5
2 changed files with 3 additions and 21 deletions
+1 -2
View File
@@ -70,6 +70,7 @@ pub struct InitArgs {
pub restore: bool,
}
/// Write config (default if None), initiate the wallet
pub fn init<L, C, K>(
owner_api: &mut Owner<L, C, K>,
_g_args: &GlobalArgs,
@@ -81,9 +82,7 @@ where
C: NodeClient + 'static,
K: keychain::Keychain + 'static,
{
// Assume global chain type has already been initialized.
let chain_type = global::get_chain_type();
let mut w_lock = owner_api.wallet_inst.lock();
let p = w_lock.lc_provider()?;
p.create_config(