Skip to content

Commit

Permalink
Add test call to validateMnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Dec 11, 2019
1 parent 04c7bad commit adc1d4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,5 +613,6 @@ var TopLevel = {
"multiAccountReset" : function () {},
"multiAccountLoadAccount" : function () {},
"multiAccountStoreAccount" : function () {},
"multiAccountImportMnemonic" : function () {}
"multiAccountImportMnemonic" : function () {},
"validateMnemonic" : function () {}
}
1 change: 1 addition & 0 deletions src/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
(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
1 change: 1 addition & 0 deletions src/status_im/native_module/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,5 @@
(defn validate-mnemonic
"Validate that a mnemonic conforms to BIP39 dictionary/checksum standards"
[mnemonic]
(log/debug "[native-module] validate-mnemonic")
(.validateMnemonic (status) mnemonic))

0 comments on commit adc1d4d

Please sign in to comment.