Skip to content

Commit

Permalink
Fixed a bug in ensure wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeOfPython committed Apr 25, 2019
1 parent 135b30e commit c03227a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn ensure_wallet_interactive() -> Result<wallet::Wallet, Box<std::error::Error>>
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();
Expand Down

0 comments on commit c03227a

Please sign in to comment.