From c03227a7dc8d6f26fde50ec5e6cd2d2c574e0a00 Mon Sep 17 00:00:00 2001 From: tobiasruck Date: Thu, 25 Apr 2019 17:01:49 +0200 Subject: [PATCH] Fixed a bug in ensure wallet --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e4e200f..e3ef514 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn ensure_wallet_interactive() -> Result> io::stdout().flush()?; let wallet_file_path: String = read!("{}\n"); let wallet_file_path = - if wallet_file_path.len() == 0 { &wallet_file_path } + if wallet_file_path.len() != 0 { &wallet_file_path } else {WALLET_FILE_NAME}; use rand::RngCore; let mut rng = rand::rngs::OsRng::new().unwrap();