Updated on 2026-08-14
This commit is contained in:
parent
bbf2b14479
commit
8eb46c9672
2 changed files with 1 additions and 7 deletions
|
|
@ -11,7 +11,6 @@ import com.tangem.datasource.utils.KotlinxDataStoreSerializer
|
|||
import com.tangem.domain.addressbook.crypto.AddressBookCipher
|
||||
import com.tangem.domain.addressbook.repository.AddressBookRepository
|
||||
import com.tangem.domain.addressbook.time.IsoTimestampProvider
|
||||
import com.tangem.domain.addressbook.usecase.GetContactsUseCase
|
||||
import com.tangem.domain.common.wallets.UserWalletsListRepository
|
||||
import com.tangem.utils.coroutines.AppCoroutineScope
|
||||
import com.tangem.utils.coroutines.CoroutineDispatcherProvider
|
||||
|
|
@ -66,9 +65,4 @@ internal object AddressBookDataModule {
|
|||
dispatchers = dispatchers,
|
||||
)
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideGetContactsUseCase(repository: AddressBookRepository): GetContactsUseCase =
|
||||
GetContactsUseCase(repository)
|
||||
}
|
||||
|
|
@ -73,7 +73,7 @@ internal class ContactMatcherTest {
|
|||
assertThat(result.single().icon.color).isEqualTo(CryptoPortfolioIcon.Color.Azure)
|
||||
}
|
||||
|
||||
private fun contact(name: String, vararg entries: AddressEntry): Contact = Contact(
|
||||
private fun contact(name: String, vararg entries: AddressEntry, iconColor: String = "Azure"): Contact = Contact(
|
||||
id = ContactId(name),
|
||||
walletId = UserWalletId(stringValue = "0001"),
|
||||
name = requireNotNull(ContactName(name).getOrNull()) { "invalid test name" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue