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

Fix ethStore pushed addresses

Needed to add hex prefix always.
This commit is contained in:
Dan Finlay 2016-09-12 08:39:46 -07:00
parent c2105c4070
commit f51a13abaf

View File

@ -494,7 +494,7 @@ IdentityStore.prototype._createFirstWallet = function (derivedKey) {
keyStore.generateNewAddress(derivedKey, 1)
this.configManager.setWallet(keyStore.serialize())
var addresses = keyStore.getAddresses()
this._ethStore.addAccount(addresses[0])
this._ethStore.addAccount(ethUtil.addHexPrefix(addresses[0]))
}
// get addresses and normalize address hexString