From e6be5016f93ac8a0589c59b6d44ce240f54f62f6 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 6 Apr 2016 14:21:19 +0300 Subject: [PATCH] replacing /home/nikky also --- parity/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index 872c91d03..674be24f3 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -383,7 +383,7 @@ impl Configuration { } } - fn _keys_path(&self) -> String { + fn keys_path(&self) -> String { self.args.flag_keys_path.replace("$HOME", env::home_dir().unwrap().to_str().unwrap()) } @@ -505,7 +505,7 @@ impl Configuration { fn execute_account_cli(&self) { use util::keys::store::SecretStore; use rpassword::read_password; - let mut secret_store = SecretStore::new_in(Path::new(&self.args.flag_keys_path)); + let mut secret_store = SecretStore::new_in(Path::new(&self.keys_path())); if self.args.cmd_new { println!("Please note that password is NOT RECOVERABLE."); println!("Type password: "); @@ -539,7 +539,7 @@ impl Configuration { .into_iter() }).collect::>(); - let account_service = AccountService::new_in(Path::new(&self.args.flag_keys_path)); + let account_service = AccountService::new_in(Path::new(&self.keys_path())); for d in &self.args.flag_unlock { let a = Address::from_str(clean_0x(&d)).unwrap_or_else(|_| { die!("{}: Invalid address for --unlock. Must be 40 hex characters, without the 0x at the beginning.", d)