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) {
|
_updateForBlock (block) {
|
||||||
const blockNumber = '0x' + block.number.toString('hex')
|
this._currentBlockNumber = block.number
|
||||||
this._currentBlockNumber = blockNumber
|
this.store.updateState({ currentBlockGasLimit: block.gasLimit })
|
||||||
|
|
||||||
this.store.updateState({ currentBlockGasLimit: `0x${block.gasLimit.toString('hex')}` })
|
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
this._updateAccounts.bind(this),
|
this._updateAccounts.bind(this),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user