eth-store - emit update on new account add

This commit is contained in:
kumavis 2017-01-14 21:46:40 -08:00
parent f49fb149cc
commit ef81bde98b
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ EthereumStore.prototype.addAccount = function (address) {
self._currentState.accounts[address] = {}
self._didUpdate()
if (!self.currentBlockNumber) return
self._updateAccount(address, noop)
self._updateAccount(address, () => {
self._didUpdate()
})
}
EthereumStore.prototype.removeAccount = function (address) {