mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
eth-store - emit update on new account add
This commit is contained in:
parent
f49fb149cc
commit
ef81bde98b
@ -43,7 +43,9 @@ EthereumStore.prototype.addAccount = function (address) {
|
|||||||
self._currentState.accounts[address] = {}
|
self._currentState.accounts[address] = {}
|
||||||
self._didUpdate()
|
self._didUpdate()
|
||||||
if (!self.currentBlockNumber) return
|
if (!self.currentBlockNumber) return
|
||||||
self._updateAccount(address, noop)
|
self._updateAccount(address, () => {
|
||||||
|
self._didUpdate()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
EthereumStore.prototype.removeAccount = function (address) {
|
EthereumStore.prototype.removeAccount = function (address) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user