Updated on 2026-08-14

This commit is contained in:
Tangem 2022-12-23 15:42:16 +03:00
parent 7f4886eaf2
commit 6e0f0d166d

View file

@ -143,7 +143,8 @@ fun WalletManagerFactory.makeSaltPayWalletManager(
scanResponse: ScanResponse,
): EthereumWalletManager {
val blockchain = scanResponse.getBlockchain()
if (blockchain != Blockchain.SaltPay) throw IllegalArgumentException()
if (blockchain != Blockchain.SaltPay)
throw IllegalArgumentException("WalletManager for the SaltPay can be created based only on Blockchain.SaltPay")
val token = SaltPayWorkaround.tokenFrom(blockchain)
val cardWallet = scanResponse.card.wallets.firstOrNull().guard {