mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
wallet seed trim on read (#1964)
This commit is contained in:
parent
1b65738504
commit
4e6d7e374b
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ impl WalletSeed {
|
|||
let mut file = File::open(seed_file_path).context(ErrorKind::IO)?;
|
||||
let mut buffer = String::new();
|
||||
file.read_to_string(&mut buffer).context(ErrorKind::IO)?;
|
||||
let wallet_seed = WalletSeed::from_hex(&buffer)?;
|
||||
let wallet_seed = WalletSeed::from_hex(&buffer.trim())?;
|
||||
Ok(wallet_seed)
|
||||
} else {
|
||||
error!(
|
||||
|
|
Loading…
Reference in a new issue