From 29b274ee727f41252e5c6a079f252fc33a6fc8ab Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Mon, 9 Nov 2020 01:26:33 +0200 Subject: [PATCH] Strip whitespace from beginning and end of mnemonic on wallet recovery --- jmclient/jmclient/wallet_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jmclient/jmclient/wallet_utils.py b/jmclient/jmclient/wallet_utils.py index 07d00c7..9453a3b 100644 --- a/jmclient/jmclient/wallet_utils.py +++ b/jmclient/jmclient/wallet_utils.py @@ -618,6 +618,7 @@ def wallet_generate_recover_bip39(method, walletspath, default_wallet_name, return False elif method == 'recover': words, mnemonic_extension = enter_seed_callback() + words = words.strip() mnemonic_extension = mnemonic_extension and mnemonic_extension.strip() if not words: return False