From c69eb3a008f143a6d16949c3987a2ffaf067c691 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 30 Nov 2020 11:53:01 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../java/com/tangem/tap/features/wallet/redux/WalletReducer.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/tangem/tap/features/wallet/redux/WalletReducer.kt b/app/src/main/java/com/tangem/tap/features/wallet/redux/WalletReducer.kt index e544f0a16d..461d3363d0 100644 --- a/app/src/main/java/com/tangem/tap/features/wallet/redux/WalletReducer.kt +++ b/app/src/main/java/com/tangem/tap/features/wallet/redux/WalletReducer.kt @@ -2,7 +2,6 @@ package com.tangem.tap.features.wallet.redux import com.tangem.blockchain.common.AmountType import com.tangem.blockchain.common.Wallet -import com.tangem.blockchain.common.address.DefaultAddressType import com.tangem.commands.common.network.TangemService import com.tangem.common.extensions.isZero import com.tangem.common.extensions.toHexString @@ -230,7 +229,7 @@ fun createAddressList(wallet: Wallet?, walletAddresses: WalletAddresses? = null) // put a defaultAddress at the first place wallet.addresses.forEach { val addressData = AddressData(it.value, it.type, wallet.getShareUri(it.value), wallet.getExploreUrl(it.value)) - if (it.type == DefaultAddressType) { + if (it.type == wallet.blockchain.defaultAddressType()) { listOfAddressData.add(0, addressData) } else { listOfAddressData.add(addressData)