Corrects balance of SPL tokens on Solana on Android

This commit is contained in:
Serg
2022-08-05 10:49:30 -04:00
parent dd1d987b04
commit 7f1a3cb8f9
2 changed files with 3 additions and 2 deletions
@@ -153,7 +153,8 @@ public class BalanceHelper {
Double tokenBalance =
(context.error == ProviderError.SUCCESS && context.balance != null
&& !context.balance.isEmpty())
? Utils.fromHexWei(context.balance, decimals)
? Utils.getBalanceForCoinType(
selectedNetwork.coin, decimals, context.balance)
: 0.0d;
if (blockchainTokensBalances.containsKey(context.accountAddress)) {
blockchainTokensBalances.get(context.accountAddress)