Check balances in parallel

feature/default_network_editable
Dan Finlay 7 years ago
parent f9a052deed
commit 74f7fc4613
  1. 9
      app/scripts/lib/pending-balance-calculator.js

@ -9,7 +9,14 @@ class PendingBalanceCalculator {
}
async getBalance() {
const balance = await this.getBalance
const results = await Promise.all([
this.getBalance(),
this.getPendingTransactions(),
])
const balance = results[0]
const pending = results[1]
return balance
}

Loading…
Cancel
Save