loadBalances method

void loadBalances(
  1. KeyPairData acc
)

Implementation

void loadBalances(KeyPairData acc) {
  // do not load balance data from cache if we have no decimals data.
  if (networkState.tokenDecimals == null) return;

  _updateBalances(
      acc,
      BalanceData.fromJson(Map<String, dynamic>.from(
          _cache.read(_getBalanceCacheKey(acc.pubKey)) ??
              {'accountId': acc.address})),
      isFromCache: true);
}