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 ce181b3417..abebf8690e 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,6 +11,7 @@ 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 @@ -65,4 +66,9 @@ 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 2f9974771e..43b52ec060 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, iconColor: String = "Azure"): Contact = Contact( + private fun contact(name: String, vararg entries: AddressEntry): Contact = Contact( id = ContactId(name), walletId = UserWalletId(stringValue = "0001"), name = requireNotNull(ContactName(name).getOrNull()) { "invalid test name" },