Updated on 2026-08-14
This commit is contained in:
parent
7aef4046c3
commit
9df8eb5ad4
3 changed files with 17 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package com.tangem.blockchainsdk.utils
|
|||
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.core.configtoggle.blockchain.ExcludedBlockchainsManager
|
||||
import org.jetbrains.annotations.TestOnly
|
||||
import javax.inject.Inject
|
||||
|
||||
class ExcludedBlockchains @Inject internal constructor(
|
||||
|
|
@ -22,6 +23,18 @@ class ExcludedBlockchains @Inject internal constructor(
|
|||
override val size: Int
|
||||
get() = excludedBlockchains.size
|
||||
|
||||
@TestOnly
|
||||
constructor() : this(
|
||||
excludedBlockchainsManager = object : ExcludedBlockchainsManager {
|
||||
|
||||
override val excludedBlockchainsIds: Set<String> = emptySet()
|
||||
|
||||
override suspend fun init() {
|
||||
/* no-op */
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
override fun contains(element: Blockchain): Boolean = excludedBlockchains.contains(element)
|
||||
|
||||
override fun containsAll(elements: Collection<Blockchain>): Boolean = excludedBlockchains.containsAll(elements)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue