Updated on 2026-08-14
This commit is contained in:
parent
fee3bdf257
commit
820fa0c393
1 changed files with 8 additions and 5 deletions
|
|
@ -40,13 +40,16 @@ class TangemCardTypesResolver(
|
|||
return when (productType) {
|
||||
ProductType.Start2Coin -> if (card.isTestCard) Blockchain.BitcoinTestnet else Blockchain.Bitcoin
|
||||
ProductType.SaltPay -> Blockchain.SaltPay
|
||||
ProductType.Note -> card.getTangemNoteBlockchain() ?: Blockchain.Unknown // todo restored old logic
|
||||
else -> {
|
||||
val blockchainName: String = walletData?.blockchain.guard {
|
||||
if (productType == ProductType.Note) {
|
||||
return card.getTangemNoteBlockchain() ?: Blockchain.Unknown
|
||||
} else {
|
||||
return Blockchain.Unknown
|
||||
}
|
||||
// TODO(hotfix [REDACTED_TASK_KEY], for note bnb, card determined as beacon blockchain, refactor later)
|
||||
//
|
||||
// if (productType == ProductType.Note) {
|
||||
// return card.getTangemNoteBlockchain() ?: Blockchain.Unknown
|
||||
// } else {
|
||||
// }
|
||||
return Blockchain.Unknown
|
||||
}
|
||||
Blockchain.fromId(blockchainName)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue