From 4e6d7e374b8739792dd47f8d863b58c1bd26f125 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Mon, 12 Nov 2018 20:09:33 +0000 Subject: [PATCH] wallet seed trim on read (#1964) --- wallet/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/src/types.rs b/wallet/src/types.rs index 70de81ff..cb144338 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!(