Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-01 10:53:55 +03:00
commit a2e049ee27
7 changed files with 42 additions and 15 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 ->