1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

account-tracker - use new block-tracker block format

This commit is contained in:
kumavis 2017-09-27 12:33:00 -07:00
parent 52976d6edc
commit 89e690fc79

View File

@ -57,10 +57,8 @@ class AccountTracker extends EventEmitter {
//
_updateForBlock (block) {
const blockNumber = '0x' + block.number.toString('hex')
this._currentBlockNumber = blockNumber
this.store.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` })
this._currentBlockNumber = block.number
this.store.updateState({ currentBlockGasLimit: block.gasLimit })
async.parallel([
this._updateAccounts.bind(this),