Revert "Fix for many wallet config errors (#731)"

This reverts commit 7ceade4449.
This commit is contained in:
Yeastplume
2025-03-08 13:28:27 +00:00
parent 7ceade4449
commit b1ffe86a55
7 changed files with 42 additions and 108 deletions
+3 -8
View File
@@ -70,7 +70,6 @@ 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,
@@ -82,16 +81,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()?;
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,