Updated on 2026-08-14

This commit is contained in:
Tangem 2022-12-16 00:04:18 +03:00
parent 456cd01c02
commit 2c7a317313
8 changed files with 24 additions and 22 deletions

View file

@ -143,8 +143,7 @@ fun WalletManagerFactory.makeSaltPayWalletManager(
scanResponse: ScanResponse,
): EthereumWalletManager {
val blockchain = scanResponse.getBlockchain()
if (blockchain != Blockchain.SaltPay && blockchain != Blockchain.SaltPayTestnet)
throw IllegalArgumentException()
if (blockchain != Blockchain.SaltPay) throw IllegalArgumentException()
val token = SaltPayWorkaround.tokenFrom(blockchain)
val cardWallet = scanResponse.card.wallets.firstOrNull().guard {