Skip to content

Commit

Permalink
Default to a 12-word mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Mar 22, 2024
1 parent 0ac3869 commit a278590
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/src/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ impl CliPersistence {
Ok(phrase) => Mnemonic::from_str(&phrase).unwrap(),
Err(e) => {
if e.kind() != io::ErrorKind::NotFound {
panic!(
"Can't read from file: {}, err {e}",
filename.to_str().unwrap()
);
panic!("Can't read from file: {}, err {e}", filename.display());
}
let mnemonic = Mnemonic::generate_in(Language::English, 24)?;
let mnemonic = Mnemonic::generate_in(Language::English, 12)?;
fs::write(filename, mnemonic.to_string())?;
mnemonic
}
Expand Down

0 comments on commit a278590

Please sign in to comment.