Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-01 11:04:25 +04:00
parent eaf587e7b8
commit ea8695c031
5 changed files with 12 additions and 3 deletions

View file

@ -9,4 +9,7 @@ internal class DefaultTokensFeatureToggles(
override val isStakingLoadingRefactoringEnabled: Boolean
get() = featureTogglesManager.isFeatureEnabled(name = "STAKING_LOADING_REFACTORING_ENABLED")
override val isWalletBalanceFetcherEnabled: Boolean
get() = featureTogglesManager.isFeatureEnabled(name = "WALLET_BALANCE_FETCHER_ENABLED")
}

View file

@ -45,7 +45,7 @@ class MockCryptoCurrencyFactory(private val scanResponse: ScanResponse = default
)
}
fun createCoin(blockchain: Blockchain): CryptoCurrency {
fun createCoin(blockchain: Blockchain): CryptoCurrency.Coin {
val derivationPath = createDerivationPath(
blockchain = blockchain,
extraDerivationPath = null,

View file

@ -5,9 +5,9 @@ import com.google.common.truth.Truth
fun <B> assertEither(actual: Either<Throwable, B>, expected: Either<Throwable, B>) {
actual
.onRight { Truth.assertThat(it).isEqualTo(expected) }
.onRight { Truth.assertThat(actual).isEqualTo(expected) }
.onLeft {
val expectedError = expected.leftOrNull() ?: error("Expected must be Either.Left")
val expectedError = expected.leftOrNull() ?: error("Actual is Either.Left: $it")
Truth.assertThat(it::class.java).isEqualTo(expectedError::class.java)
}

View file

@ -74,5 +74,9 @@
{
"name": "SEND_REDESIGN_ENABLED",
"version": "undefined"
},
{
"name": "WALLET_BALANCE_FETCHER_ENABLED",
"version": "undefined"
}
]

View file

@ -8,4 +8,6 @@ package com.tangem.domain.tokens
interface TokensFeatureToggles {
val isStakingLoadingRefactoringEnabled: Boolean
val isWalletBalanceFetcherEnabled: Boolean
}