mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Call back with wallet restore errors
This commit is contained in:
parent
888ade6a1d
commit
685711aca4
@ -227,7 +227,11 @@ IdentityStore.prototype._createIdmgmt = function(password, seed, entropy, cb){
|
|||||||
var serializedKeystore = configManager.getWallet()
|
var serializedKeystore = configManager.getWallet()
|
||||||
|
|
||||||
if (seed) {
|
if (seed) {
|
||||||
keyStore = this._restoreFromSeed(password, seed, derivedKey)
|
try {
|
||||||
|
keyStore = this._restoreFromSeed(password, seed, derivedKey)
|
||||||
|
} catch (e) {
|
||||||
|
return cb(e)
|
||||||
|
}
|
||||||
|
|
||||||
// returning user, recovering from storage
|
// returning user, recovering from storage
|
||||||
} else if (serializedKeystore) {
|
} else if (serializedKeystore) {
|
||||||
|
Loading…
Reference in New Issue
Block a user