Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-29 17:13:06 +03:00
parent 1bac8466b1
commit aa227b4868
3 changed files with 11 additions and 6 deletions

View file

@ -19,6 +19,7 @@ import com.tangem.datasource.local.preferences.PreferencesKeys
import com.tangem.datasource.local.preferences.utils.getObject import com.tangem.datasource.local.preferences.utils.getObject
import com.tangem.datasource.local.preferences.utils.getObjectSyncOrNull import com.tangem.datasource.local.preferences.utils.getObjectSyncOrNull
import com.tangem.datasource.local.userwallet.UserWalletsStore import com.tangem.datasource.local.userwallet.UserWalletsStore
import com.tangem.domain.common.util.cardTypesResolver
import com.tangem.domain.core.error.DataError import com.tangem.domain.core.error.DataError
import com.tangem.domain.demo.DemoConfig import com.tangem.domain.demo.DemoConfig
import com.tangem.domain.models.currency.CryptoCurrency import com.tangem.domain.models.currency.CryptoCurrency
@ -542,9 +543,13 @@ internal class DefaultCurrenciesRepository(
value = getSavedUserTokensResponseSync(key = userWalletId), value = getSavedUserTokensResponseSync(key = userWalletId),
lazyMessage = { "Saved tokens empty. Can not perform add currencies action" }, lazyMessage = { "Saved tokens empty. Can not perform add currencies action" },
) )
userTokensSaver.push(userWalletId, savedCurrencies, onFailSend = { userTokensSaver.push(
throw IllegalStateException("Unable to push tokens") userWalletId,
},) savedCurrencies,
onFailSend = {
throw IllegalStateException("Unable to push tokens")
},
)
} }
private fun getMultiCurrencyWalletCurrencies(userWallet: UserWallet): Flow<List<CryptoCurrency>> { private fun getMultiCurrencyWalletCurrencies(userWallet: UserWallet): Flow<List<CryptoCurrency>> {

View file

@ -153,7 +153,7 @@ internal class BalanceItemConverter(
} }
private fun BalanceItem.isClickable(): Boolean { private fun BalanceItem.isClickable(): Boolean {
val networkId = cryptoCurrencyStatus.currency.network.id.value val networkId = cryptoCurrencyStatus.currency.network.rawId
return when { return when {
// TON allows withdrawing funds in the preparing state, unlike other networks. // TON allows withdrawing funds in the preparing state, unlike other networks.
isTon(networkId) && this.type == BalanceType.PREPARING -> { isTon(networkId) && this.type == BalanceType.PREPARING -> {

View file

@ -5,9 +5,9 @@
# https://github.com/tangem/tangem-sdk-android/ # https://github.com/tangem/tangem-sdk-android/
# https://github.com/tangem/vico # https://github.com/tangem/vico
tangemBlockchainSdk = "develop-1067" tangemBlockchainSdk = "develop-1074"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-472" tangemCardSdk = "develop-475"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^ #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
tangemVico = "2.0.0-alpha.25-tangem12" tangemVico = "2.0.0-alpha.25-tangem12"
#tangemVico = "0.0.1" # Keep it! - used for local builds ^ #tangemVico = "0.0.1" # Keep it! - used for local builds ^