Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-15 14:01:49 +03:00
parent 50dca50508
commit 1a9e2006d5
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
package com.tangem.data.pay.util
import com.tangem.common.card.FirmwareVersion
import com.tangem.domain.common.wallets.UserWalletsListRepository
import com.tangem.domain.models.wallet.UserWallet
import com.tangem.domain.wallets.legacy.UserWalletsListManager
@ -32,7 +33,7 @@ class TangemPayWalletsManager @Inject constructor(
private fun findColdWallet(userWallets: List<UserWallet>?): UserWallet.Cold {
return userWallets?.find {
it is UserWallet.Cold && it.isMultiCurrency
it is UserWallet.Cold && it.scanResponse.card.firmwareVersion >= FirmwareVersion.HDWalletAvailable
} as? UserWallet.Cold ?: error("Cannot find cold user wallet")
}
}