Updated on 2026-08-14
This commit is contained in:
parent
eaf587e7b8
commit
ea8695c031
5 changed files with 12 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,5 +74,9 @@
|
|||
{
|
||||
"name": "SEND_REDESIGN_ENABLED",
|
||||
"version": "undefined"
|
||||
},
|
||||
{
|
||||
"name": "WALLET_BALANCE_FETCHER_ENABLED",
|
||||
"version": "undefined"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -8,4 +8,6 @@ package com.tangem.domain.tokens
|
|||
interface TokensFeatureToggles {
|
||||
|
||||
val isStakingLoadingRefactoringEnabled: Boolean
|
||||
|
||||
val isWalletBalanceFetcherEnabled: Boolean
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue