diff --git a/wallet/src/types.rs b/wallet/src/types.rs index 70de81ff1..cb1443384 100644 --- a/wallet/src/types.rs +++ b/wallet/src/types.rs @@ -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!(