aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-03 14:32:00 +0800
committerkumavis <aaron@kumavis.me>2017-02-03 14:32:00 +0800
commitb233e7e37c56852080bdc7b1843eb68ba96b5382 (patch)
tree8d4748809093b86f970db580b65dac598dc81820 /app
parent8b5e3aa287ef5e803a68730db5ccb8bec0b6b254 (diff)
downloadtangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar.gz
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar.bz2
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar.lz
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar.xz
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.tar.zst
tangerine-wallet-browser-b233e7e37c56852080bdc7b1843eb68ba96b5382.zip
eth-store - cbs default to noop
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/eth-store.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js
index 64a3c6b59..96b4a60f2 100644
--- a/app/scripts/lib/eth-store.js
+++ b/app/scripts/lib/eth-store.js
@@ -76,13 +76,13 @@ class EthereumStore extends ObservableStore {
})
}
- _updateAccounts (cb) {
+ _updateAccounts (cb = noop) {
const accounts = this.getState().accounts
const addresses = Object.keys(accounts)
async.each(addresses, this._updateAccount.bind(this), cb)
}
- _updateAccount (address, cb) {
+ _updateAccount (address, cb = noop) {
const accounts = this.getState().accounts
this._getAccount(address, (err, result) => {
if (err) return cb(err)
@@ -95,13 +95,13 @@ class EthereumStore extends ObservableStore {
})
}
- _updateTransactions (block, cb) {
+ _updateTransactions (block, cb = noop) {
const transactions = this.getState().transactions
const txHashes = Object.keys(transactions)
async.each(txHashes, this._updateTransaction.bind(this, block), cb)
}
- _updateTransaction (block, txHash, cb) {
+ _updateTransaction (block, txHash, cb = noop) {
// would use the block here to determine how many confirmations the tx has
const transactions = this.getState().transactions
this._query.getTransaction(txHash, (err, result) => {
@@ -114,7 +114,7 @@ class EthereumStore extends ObservableStore {
})
}
- _getAccount (address, cb) {
+ _getAccount (address, cb = noop) {
const query = this._query
async.parallel({
balance: query.getBalance.bind(query, address),