diff --git a/data/address-book/src/main/kotlin/com/tangem/data/addressbook/di/AddressBookDataModule.kt b/data/address-book/src/main/kotlin/com/tangem/data/addressbook/di/AddressBookDataModule.kt index abebf8690e..ce181b3417 100644 --- a/data/address-book/src/main/kotlin/com/tangem/data/addressbook/di/AddressBookDataModule.kt +++ b/data/address-book/src/main/kotlin/com/tangem/data/addressbook/di/AddressBookDataModule.kt @@ -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) } \ No newline at end of file diff --git a/features/address-book/impl/src/test/kotlin/com/tangem/features/addressbook/common/ContactMatcherTest.kt b/features/address-book/impl/src/test/kotlin/com/tangem/features/addressbook/common/ContactMatcherTest.kt index 43b52ec060..2f9974771e 100644 --- a/features/address-book/impl/src/test/kotlin/com/tangem/features/addressbook/common/ContactMatcherTest.kt +++ b/features/address-book/impl/src/test/kotlin/com/tangem/features/addressbook/common/ContactMatcherTest.kt @@ -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" },