mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
account-tracker - use new block-tracker block format
This commit is contained in:
parent
52976d6edc
commit
89e690fc79
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user