Updated on 2026-08-14
This commit is contained in:
parent
bd3f0f57a9
commit
bfaea07674
1 changed files with 13 additions and 11 deletions
|
|
@ -425,17 +425,19 @@ internal class TokenDetailsViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
override fun onTransactionClick(txHash: String) {
|
||||
val blockchain = Blockchain.fromId(cryptoCurrency.network.id.value)
|
||||
// TODO: Fix ton tx urls [REDACTED_TASK_KEY]
|
||||
if (blockchain == Blockchain.TON || blockchain == Blockchain.TONTestnet) {
|
||||
return
|
||||
} else {
|
||||
router.openUrl(
|
||||
url = getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = cryptoCurrency.network.id,
|
||||
),
|
||||
)
|
||||
// TODO: Fix tx urls [REDACTED_TASK_KEY]
|
||||
when (Blockchain.fromId(cryptoCurrency.network.id.value)) {
|
||||
Blockchain.TON, Blockchain.TONTestnet,
|
||||
Blockchain.Decimal, Blockchain.DecimalTestnet,
|
||||
-> return
|
||||
else -> {
|
||||
router.openUrl(
|
||||
url = getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = cryptoCurrency.network.id,
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue