diff --git a/controller/src/command.rs b/controller/src/command.rs index 1e883dd..536a3f3 100644 --- a/controller/src/command.rs +++ b/controller/src/command.rs @@ -82,17 +82,12 @@ 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()?; - println!("Checkpoint"); - p.create_config( - &chain_type, - WALLET_CONFIG_FILE_NAME, - Some(args.config), - None, - None, - )?; + p.create_config(&chain_type, WALLET_CONFIG_FILE_NAME, None, None, None)?; p.create_wallet( None, args.recovery_phrase,