aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-17 12:16:05 +0800
committerkumavis <aaron@kumavis.me>2018-05-17 12:16:05 +0800
commit32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd (patch)
tree2f5459147336aec68c61d511f755de69058eb2d8 /app
parent623533ab1508c93f0c347f0c4a1002ce93ff1ae2 (diff)
downloadtangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar.gz
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar.bz2
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar.lz
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar.xz
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.tar.zst
tangerine-wallet-browser-32b3b8f2a76b4a67fde2a3af2ddd239998c5dfcd.zip
controllers - balance - update for eth-block-tracker@4
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/balance.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/balance.js b/app/scripts/controllers/balance.js
index 86619fce1..465751e61 100644
--- a/app/scripts/controllers/balance.js
+++ b/app/scripts/controllers/balance.js
@@ -60,7 +60,7 @@ class BalanceController {
* Sets up listeners and subscriptions which should trigger an update of ethBalance. These updates include:
* - when a transaction changes state to 'submitted', 'confirmed' or 'failed'
* - when the current account changes (i.e. a new account is selected)
- * - when there is a block update
+ * - when there is a block update
*
* @private
*
@@ -80,7 +80,7 @@ class BalanceController {
}
})
this.accountTracker.store.subscribe(update)
- this.blockTracker.on('block', update)
+ this.blockTracker.on('latest', update)
}
/**
@@ -100,7 +100,7 @@ class BalanceController {
/**
* Gets the pending transactions (i.e. those with a 'submitted' status). These are accessed from the
- * TransactionController passed to this BalanceController during construction.
+ * TransactionController passed to this BalanceController during construction.
*
* @private
* @returns {Promise<array>} Promises an array of transaction objects.