diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js index 7abe349a3..a71617f60 100644 --- a/app/scripts/lib/account-tracker.js +++ b/app/scripts/lib/account-tracker.js @@ -243,8 +243,17 @@ export default class AccountTracker { * @returns {Promise} after the account balance is updated */ async _updateAccount(address) { + let balance = '0x0'; + // query balance - const balance = await this._query.getBalance(address); + try { + balance = await this._query.getBalance(address); + } catch (error) { + if (error.data.request.method !== 'eth_getBalance') { + throw error; + } + } + const result = { address, balance }; // update accounts state const { accounts } = this.store.getState();