Merge pull request #1087 from MetaMask/kumavis-refactor7

bugfix - eth-store - update store state after manipulating
feature/default_network_editable
Kevin Serrano 8 years ago committed by GitHub
commit 24ff38e973
  1. 2
      app/scripts/lib/eth-store.js

@ -92,6 +92,7 @@ class EthereumStore extends ObservableStore {
// only populate if the entry is still present // only populate if the entry is still present
if (accounts[address]) { if (accounts[address]) {
accounts[address] = result accounts[address] = result
this.updateState({ accounts })
} }
cb(null, result) cb(null, result)
}) })
@ -111,6 +112,7 @@ class EthereumStore extends ObservableStore {
// only populate if the entry is still present // only populate if the entry is still present
if (transactions[txHash]) { if (transactions[txHash]) {
transactions[txHash] = result transactions[txHash] = result
this.updateState({ transactions })
} }
cb(null, result) cb(null, result)
}) })

Loading…
Cancel
Save