Only init one wallet on restore

Fixes #610
feature/default_network_editable
Dan Finlay 8 years ago
parent c97aef2b99
commit 01f3683dcf
  1. 2
      app/scripts/lib/idStore.js

@ -483,7 +483,7 @@ IdentityStore.prototype._restoreFromSeed = function (password, seed, derivedKey)
keyStore.addHdDerivationPath(this.hdPathString, derivedKey, {curve: 'secp256k1', purpose: 'sign'})
keyStore.setDefaultHdDerivationPath(this.hdPathString)
keyStore.generateNewAddress(derivedKey, 3)
keyStore.generateNewAddress(derivedKey, 1)
configManager.setWallet(keyStore.serialize())
if (global.METAMASK_DEBUG) {
console.log('restored from seed. saved to keystore')

Loading…
Cancel
Save