diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/account-tracker.js | 5 | ||||
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js index 07fc32b10..a108d0d4f 100644 --- a/app/scripts/lib/account-tracker.js +++ b/app/scripts/lib/account-tracker.js @@ -58,9 +58,8 @@ class AccountTracker extends EventEmitter { // _updateForBlock (block) { - const blockNumber = '0x' + block.number.toString('hex') - this._currentBlockNumber = blockNumber - const currentBlockGasLimit = ethUtil.addHexPrefix(block.gasLimit.toString()) + this._currentBlockNumber = block.number + const currentBlockGasLimit = block.gasLimit this.store.updateState({ currentBlockGasLimit }) diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js index b07a6bd39..b97cec9ce 100644 --- a/app/scripts/lib/pending-tx-tracker.js +++ b/app/scripts/lib/pending-tx-tracker.js @@ -53,7 +53,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter { }) } - queryPendingTxs ({oldBlock, newBlock}) { + queryPendingTxs ({ oldBlock, newBlock }) { // check pending transactions on start if (!oldBlock) { this._checkPendingTxs() |