Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-26 10:11:00 +03:00
parent 7c50cc09dc
commit d1189ffda2
12 changed files with 9 additions and 25 deletions

View file

@ -10,7 +10,6 @@ import com.tangem.data.txhistory.repository.paging.TxHistoryPagingSource
import com.tangem.datasource.local.txhistory.TxHistoryItemsStore
import com.tangem.datasource.local.userwallet.UserWalletsStore
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.network.Network
import com.tangem.domain.models.network.TxInfo
import com.tangem.domain.models.wallet.UserWallet
import com.tangem.domain.models.wallet.UserWalletId
@ -75,8 +74,8 @@ class DefaultTxHistoryRepository(
return pager.flow
}
override fun getTxExploreUrl(txHash: String, networkId: Network.ID, currency: CryptoCurrency): String {
val blockchain = networkId.toBlockchain()
override fun getTxExploreUrl(txHash: String, currency: CryptoCurrency): String {
val blockchain = currency.network.id.toBlockchain()
val txExploreState = when (currency) {
is CryptoCurrency.Token -> blockchain.getTokenExplorerTxUrl(txHash)
else -> blockchain.getExploreTxUrl(txHash)