Updated on 2026-08-14

This commit is contained in:
Tangem 2022-03-23 14:48:10 +03:00
parent 5e36d13299
commit e31403a39a
3 changed files with 15 additions and 4 deletions

View file

@ -1,6 +1,5 @@
package com.tangem.tap.features.demo
import com.tangem.blockchain.common.Wallet
import com.tangem.blockchain.common.WalletManager
import com.tangem.tap.domain.tasks.product.ScanResponse
@ -8,5 +7,4 @@ import com.tangem.tap.domain.tasks.product.ScanResponse
[REDACTED_AUTHOR]
*/
fun ScanResponse.isDemoCard(): Boolean = DemoHelper.isDemoCardId(card.cardId)
fun WalletManager.isDemoWallet(): Boolean = DemoHelper.isDemoCardId(wallet.cardId)
fun Wallet.isDemoWallet(): Boolean = DemoHelper.isDemoCardId(cardId)
fun WalletManager.isDemoWallet(): Boolean = DemoHelper.isDemoCardId(wallet.cardId)