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

Restore blockGasLimit to account-tracker

This commit is contained in:
Dan Finlay 2017-09-26 13:36:41 -07:00
parent b1daa5ae26
commit 3bedcd3582

View File

@ -18,6 +18,7 @@ class EthereumStore extends ObservableStore {
constructor (opts = {}) {
super({
accounts: {},
currentBlockGasLimit: '',
})
this._provider = opts.provider
this._query = new EthQuery(this._provider)
@ -54,6 +55,8 @@ class EthereumStore extends ObservableStore {
const blockNumber = '0x' + block.number.toString('hex')
this._currentBlockNumber = blockNumber
this.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` })
async.parallel([
this._updateAccounts.bind(this),
], (err) => {