Skip to content

Commit

Permalink
Switch mnemonic validation to status-go
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Dec 13, 2019
1 parent adc1d4d commit 6168b22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
(stickers/init-stickers-packs)
(mobile-network/on-network-status-change)
(chaos-mode/check-chaos-mode)
(status/validate-mnemonic "abacus")
(when-not platform/desktop?
(initialize-wallet)))))

Expand Down
3 changes: 1 addition & 2 deletions src/status_im/multiaccounts/recover/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

(defn check-phrase-warnings [recovery-phrase]
(cond (string/blank? recovery-phrase) :required-field
(not (mnemonic/valid-words? recovery-phrase)) :recovery-phrase-invalid
(not (mnemonic/status-generated-phrase? recovery-phrase)) :recovery-phrase-unknown-words))
(if (status/validate-mnemonic recovery-phrase) :recovery-phrase-invalid)))

(fx/defn set-phrase
{:events [:multiaccounts.recover/passphrase-input-changed]}
Expand Down

0 comments on commit 6168b22

Please sign in to comment.