app/scripts/lib/account-tracker.js
/**
   * Updates the current balance of an account.
   *
   * @private
   * @param {string} address A hex address of a the account to be updated
   * @returns {Promise} after the account balance is updated
   *
   */
Updates the current balance of an account.
@private
@param {string} address A hex address of a the account to be updated
@returns {Promise} after the account balance is updated
Updates the current balance of an account . @private @param { string } address A hex address of a the account to be updated @returns { Promise } after the account balance is updated
async _updateAccount (address) {
    const balance = await this.getJccRpc(address)
    const result = { address, balance }
    const { accounts } = this.store.getState()
    if (!accounts[address]) return
    accounts[address] = result
    this.store.updateState({ accounts })
  }
async _updateAccount ( address ) { const balance = await this . getJccRpc ( address ) const result = { address , balance } const { accounts } = this . store . getState ( ) if ( ! accounts [ address ] ) return accounts [ address ] = result this . store . updateState ( { accounts } ) }
Updates the current balance of an account.
Updates the current balance of an account .
// query balance // update accounts state // only populate if the entry is still present