In key management section, the mnemonic was not being trimmed, which lead to issues

Signed-off-by: Shivek Khurana <shivek@status.im>
This commit is contained in:
Shivek Khurana 2021-03-30 14:53:26 +05:30
parent f0827ff624
commit 90ad5f2f77
No known key found for this signature in database
GPG Key ID: 9BEB56E6E62968C7
1 changed files with 2 additions and 1 deletions

View File

@ -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,