1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #1678 from MetaMask/i1584-seederror

Display error when seed phrase is invalid
This commit is contained in:
Thomas Huang 2017-06-26 16:35:47 -07:00 committed by GitHub
commit 48f7cff8c0
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- Fix bug where slowly mined txs would sometimes be incorrectly marked as failed. - Fix bug where slowly mined txs would sometimes be incorrectly marked as failed.
- Fix bug where badge count did not reflect personal_sign pending messages. - Fix bug where badge count did not reflect personal_sign pending messages.
- Seed word confirmation wording is now scarier. - Seed word confirmation wording is now scarier.
- Fix error for invalid seed words.
- Prevent users from submitting two duplicate transactions by disabling submit. - Prevent users from submitting two duplicate transactions by disabling submit.
## 3.7.8 2017-6-12 ## 3.7.8 2017-6-12

View File

@ -87,7 +87,7 @@ class KeyringController extends EventEmitter {
} }
if (!bip39.validateMnemonic(seed)) { if (!bip39.validateMnemonic(seed)) {
return Promise.reject('Seed phrase is invalid.') return Promise.reject(new Error('Seed phrase is invalid.'))
} }
this.clearKeyrings() this.clearKeyrings()