Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-03 12:29:53 +01:00
parent 3e47825909
commit 1f00384c0c
22 changed files with 59 additions and 63 deletions

View file

@ -124,7 +124,7 @@ internal class SendDestinationModel @Inject constructor(
if (address.contactName != null) return@combine false // sent via a contact
val networkId = cryptoCurrency.network.rawId
contactList.none { contact ->
contact.addressEntries.any {
contact.addresses.any {
it.networkId.value == networkId && it.address.equals(address.actualAddress, ignoreCase = true)
}
}
@ -481,7 +481,7 @@ internal class SendDestinationModel @Inject constructor(
private fun findContactByAddress(address: String): Contact? {
val networkId = cryptoCurrency.network.rawId
return contacts.value.firstOrNull { contact ->
contact.addressEntries.any { entry ->
contact.addresses.any { entry ->
entry.networkId.value == networkId && entry.address.equals(address, ignoreCase = true)
}
}

View file

@ -489,7 +489,7 @@ internal class SendDestinationModelTest {
iconColor = "#FFFFFF",
createdAt = "2026-01-01T00:00:00.000Z",
updatedAt = "2026-01-01T00:00:00.000Z",
addressEntries = listOf(
addresses = listOf(
AddressEntry(
id = AddressEntryId("e1"),
address = address,