diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-09 10:49:26 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-09 10:49:28 +0800 |
commit | 01f3683dcf7a1e9b32df395694fb94afb337f2e8 (patch) | |
tree | a821b83f7cdf21b5bfac694755c8d208fa5b4356 /app | |
parent | c97aef2b997e32aeab61d2a81a6513f237c66a31 (diff) | |
download | tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar.gz tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar.bz2 tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar.lz tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar.xz tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.tar.zst tangerine-wallet-browser-01f3683dcf7a1e9b32df395694fb94afb337f2e8.zip |
Only init one wallet on restore
Fixes #610
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/idStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 0f36a520b..26aa02ef7 100644 --- a/app/scripts/lib/idStore.js +++ b/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') |