Updated on 2026-08-14

This commit is contained in:
Tangem 2023-08-29 15:26:31 +03:00
parent 2de0a33f06
commit 4743c5d4a5
2 changed files with 4 additions and 2 deletions

View file

@ -151,7 +151,9 @@ private class CreateWalletTangemWallet(
) {
val config = CardConfig.createConfig(card)
val walletsOnCard = card.wallets.map { it.curve }.toSet()
val curves = card.supportedCurves.intersect(config.mandatoryCurves.toSet()).subtract(walletsOnCard).toList()
val curves = config.mandatoryCurves.toSet()
.intersect(card.supportedCurves.toSet())
.subtract(walletsOnCard).toList()
if (curves.isEmpty()) {
val createWalletResponses = card.wallets.map { wallet ->