aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-28 03:33:00 +0800
committerkumavis <aaron@kumavis.me>2017-09-28 03:33:00 +0800
commit89e690fc794a7cf0af541dbb0c1fd58d73bac368 (patch)
tree137604d2da989e58ffd4a16cf36edb0cce00a249
parent52976d6edc4b69add7c08b1eab77dd18a5a9fdd4 (diff)
downloadtangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar.gz
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar.bz2
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar.lz
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar.xz
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.tar.zst
tangerine-wallet-browser-89e690fc794a7cf0af541dbb0c1fd58d73bac368.zip
account-tracker - use new block-tracker block format
-rw-r--r--app/scripts/lib/account-tracker.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js
index e2892b1ce..e550c2758 100644
--- a/app/scripts/lib/account-tracker.js
+++ b/app/scripts/lib/account-tracker.js
@@ -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),