Updated on 2026-08-14
This commit is contained in:
parent
7f4886eaf2
commit
6e0f0d166d
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue