mirror of
https://github.com/status-im/status-react.git
synced 2025-02-11 18:36:34 +00:00
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:
parent
f0827ff624
commit
90ad5f2f77
@ -66,7 +66,8 @@
|
|||||||
"Check if the key-uid was generated with the given seed-phrase"
|
"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]}]
|
[{:keys [import-mnemonic-fn on-success on-error]} {:keys [seed-phrase key-uid]}]
|
||||||
(import-mnemonic-fn
|
(import-mnemonic-fn
|
||||||
seed-phrase nil
|
(mnemonic/sanitize-passphrase seed-phrase)
|
||||||
|
nil
|
||||||
(fn [result]
|
(fn [result]
|
||||||
(let [{:keys [keyUid]} (types/json->clj result)]
|
(let [{:keys [keyUid]} (types/json->clj result)]
|
||||||
;; if the key-uid from app-db is same as the one returned by multiaccount import,
|
;; if the key-uid from app-db is same as the one returned by multiaccount import,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user