diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2017-09-28 05:22:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 05:22:41 +0800 |
commit | 87458dae2432559a501a867ecc0ab02ae5c64f05 (patch) | |
tree | a2a958190584f888ceac5876c9658b438bb9142c /app | |
parent | 5bbea78306f13415f85159f3d23c2b69d8f2a26c (diff) | |
parent | 7d499df8e32e85f5e4ed5c51f20496028d1dcdbb (diff) | |
download | tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar.gz tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar.bz2 tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar.lz tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar.xz tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.tar.zst tangerine-wallet-browser-87458dae2432559a501a867ecc0ab02ae5c64f05.zip |
Merge pull request #2191 from MetaMask/direct-block-trackerv3.10.5
Fix for direct use of eth-block-tracker
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/account-tracker.js | 6 | ||||
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js index 07fc32b10..cdc21282d 100644 --- a/app/scripts/lib/account-tracker.js +++ b/app/scripts/lib/account-tracker.js @@ -11,7 +11,6 @@ const async = require('async') const EthQuery = require('eth-query') const ObservableStore = require('obs-store') const EventEmitter = require('events').EventEmitter -const ethUtil = require('ethereumjs-util') function noop () {} @@ -58,9 +57,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() |