mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add one wallet to new accounts instead of three.
This commit is contained in:
parent
6537544463
commit
ecd0a3ec1e
@ -465,7 +465,7 @@ IdentityStore.prototype._createFirstWallet = function (entropy, derivedKey) {
|
|||||||
keyStore.addHdDerivationPath(this.hdPathString, derivedKey, {curve: 'secp256k1', purpose: 'sign'})
|
keyStore.addHdDerivationPath(this.hdPathString, derivedKey, {curve: 'secp256k1', purpose: 'sign'})
|
||||||
keyStore.setDefaultHdDerivationPath(this.hdPathString)
|
keyStore.setDefaultHdDerivationPath(this.hdPathString)
|
||||||
|
|
||||||
keyStore.generateNewAddress(derivedKey, 3)
|
keyStore.generateNewAddress(derivedKey, 1)
|
||||||
configManager.setWallet(keyStore.serialize())
|
configManager.setWallet(keyStore.serialize())
|
||||||
console.log('saved to keystore')
|
console.log('saved to keystore')
|
||||||
return keyStore
|
return keyStore
|
||||||
|
Loading…
Reference in New Issue
Block a user