Updated on 2026-08-14

This commit is contained in:
Tangem 2025-08-06 17:11:11 +04:00
parent 069ff2f4e1
commit 25086c03af

View file

@ -369,7 +369,8 @@ abstract class BaseCurrencyStatusOperations(
multiWalletCryptoCurrenciesSupplier.getSyncOrNull(
params = MultiWalletCryptoCurrenciesProducer.Params(userWalletId),
)
?.firstOrNull { it.network.id == networkId && it.network.derivationPath == derivationPath }
?.filterIsInstance<CryptoCurrency.Coin>()
?.firstOrNull { it.network.id == networkId }
?: error("Unable to create network coin with ID: $networkId and derivation path: $derivationPath")
} else {
currenciesRepository.getNetworkCoin(userWalletId, networkId, derivationPath)