From 90ad5f2f77964eff1a7b155e475dea79f5ae4622 Mon Sep 17 00:00:00 2001 From: Shivek Khurana Date: Tue, 30 Mar 2021 14:53:26 +0530 Subject: [PATCH] In key management section, the mnemonic was not being trimmed, which lead to issues Signed-off-by: Shivek Khurana --- src/status_im/multiaccounts/key_storage/core.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/multiaccounts/key_storage/core.cljs b/src/status_im/multiaccounts/key_storage/core.cljs index 7b94214f53..f424f83fb0 100644 --- a/src/status_im/multiaccounts/key_storage/core.cljs +++ b/src/status_im/multiaccounts/key_storage/core.cljs @@ -66,7 +66,8 @@ "Check if the key-uid was generated with the given seed-phrase" [{:keys [import-mnemonic-fn on-success on-error]} {:keys [seed-phrase key-uid]}] (import-mnemonic-fn - seed-phrase nil + (mnemonic/sanitize-passphrase seed-phrase) + nil (fn [result] (let [{:keys [keyUid]} (types/json->clj result)] ;; if the key-uid from app-db is same as the one returned by multiaccount import,