aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-01-05 06:14:45 +0800
committerDan Finlay <dan@danfinlay.com>2017-01-05 06:15:53 +0800
commita107b66854a736a2809fba2a490039b9920b92d5 (patch)
tree98b550c02ea51a30b7747a5c5b67117e3882f420
parent18e6d266c1ac31bb17a5f2816167ea2d4b01ad64 (diff)
downloadtangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar.gz
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar.bz2
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar.lz
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar.xz
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.tar.zst
tangerine-wallet-browser-a107b66854a736a2809fba2a490039b9920b92d5.zip
Caught typo
-rw-r--r--app/scripts/lib/eth-store.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js
index cca6f7d5d..3b5501095 100644
--- a/app/scripts/lib/eth-store.js
+++ b/app/scripts/lib/eth-store.js
@@ -79,7 +79,7 @@ EthereumStore.prototype._didUpdate = function () {
EthereumStore.prototype._updateForBlock = function (block) {
const self = this
- var blockNumber = '0x'+block.number.toString('hex')
+ var blockNumber = '0x' + block.number.toString('hex')
self.currentBlockNumber = blockNumber
async.parallel([
self._updateAccounts.bind(self),
@@ -134,7 +134,8 @@ EthereumStore.prototype._updateTransaction = function (block, txHash, cb) {
var transactionsState = self._currentState.transactions
self._query.getTransaction(txHash, function (err, result) {
if (err) return cb(err)
- // only populate if the entry is still present if (transactionsState[txHash]) {
+ // only populate if the entry is still present
+ if (transactionsState[txHash]) {
transactionsState[txHash] = result
self._didUpdate()
}