mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-01 11:23:55 +01:00
Rework directory checks/setups at launch (#318)
* rework setup code to ensure --top_level_dir flag works and all files are only output into the desired directory * check for existence of wallet configuration file in target directory before asking recovery phrase and password * test fixes and add test_mode flag to parse_init_args
This commit is contained in:
+1
-1
@@ -308,7 +308,7 @@ where
|
||||
{
|
||||
let args = app.clone().get_matches_from(arg_vec);
|
||||
let _ = get_wallet_subcommand(test_dir, wallet_name, args.clone());
|
||||
let config = config::initial_setup_wallet(&ChainTypes::AutomatedTesting, None).unwrap();
|
||||
let config = config::initial_setup_wallet(&ChainTypes::AutomatedTesting, None, true).unwrap();
|
||||
let mut wallet_config = config.clone().members.unwrap().wallet;
|
||||
wallet_config.chain_type = None;
|
||||
wallet_config.api_secret_path = None;
|
||||
|
||||
Reference in New Issue
Block a user