Updated on 2026-08-14

This commit is contained in:
Tangem 2020-11-30 11:53:01 +03:00
parent 91a9792c84
commit c69eb3a008

View file

@ -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)