Updated on 2026-08-14
This commit is contained in:
parent
39303971df
commit
910be11531
12 changed files with 38 additions and 29 deletions
|
|
@ -460,6 +460,7 @@ internal class SendConfirmModel @Inject constructor(
|
|||
val txUrl = getExplorerTransactionUrlUseCase(
|
||||
txHash = txData.hash.orEmpty(),
|
||||
networkId = cryptoCurrency.network.id,
|
||||
currency = cryptoCurrency,
|
||||
).getOrNull().orEmpty()
|
||||
_uiState.update(SendConfirmSentStateTransformer(txData, txUrl))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ internal class NFTSendConfirmModel @Inject constructor(
|
|||
val txUrl = getExplorerTransactionUrlUseCase(
|
||||
txHash = txData.hash.orEmpty(),
|
||||
networkId = cryptoCurrency.network.id,
|
||||
currency = cryptoCurrency,
|
||||
).getOrElse { "" }
|
||||
_uiState.update(NFTSendConfirmSentStateTransformer(txData, txUrl))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -253,7 +253,8 @@ internal class StakingTransactionSender @AssistedInject constructor(
|
|||
val txUrl = getExplorerTransactionUrlUseCase(
|
||||
txHash = transactionHashes.last(),
|
||||
networkId = cryptoCurrencyStatus.currency.network.id,
|
||||
).getOrNull() ?: ""
|
||||
currency = cryptoCurrencyStatus.currency,
|
||||
).getOrNull().orEmpty()
|
||||
|
||||
balanceUpdater.updateAfterTransaction()
|
||||
onSendSuccess(txUrl)
|
||||
|
|
|
|||
|
|
@ -288,6 +288,7 @@ internal class SendWithSwapConfirmModel @Inject constructor(
|
|||
val txUrl = getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = primaryCurrencyStatus.currency.network.id,
|
||||
currency = primaryCurrencyStatus.currency,
|
||||
).getOrNull().orEmpty()
|
||||
sendSuccessAnalytics()
|
||||
uiState.transformerUpdate(
|
||||
|
|
|
|||
|
|
@ -781,6 +781,7 @@ internal class SwapModel @Inject constructor(
|
|||
val url = getExplorerTransactionUrlUseCase(
|
||||
txHash = swapTransactionState.txHash,
|
||||
networkId = fromCurrency.currency.network.id,
|
||||
currency = fromCurrency.currency,
|
||||
).getOrElse {
|
||||
Timber.i("tx hash explore not supported")
|
||||
""
|
||||
|
|
|
|||
|
|
@ -830,6 +830,7 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = cryptoCurrency.network.id,
|
||||
currency = cryptoCurrency,
|
||||
).fold(
|
||||
ifLeft = { Timber.e(it.toString()) },
|
||||
ifRight = { router.openUrl(url = it) },
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ internal class TxHistoryModel @Inject constructor(
|
|||
getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = params.currency.network.id,
|
||||
currency = params.currency,
|
||||
).fold(
|
||||
ifLeft = { Timber.e(it.toString()) },
|
||||
ifRight = { urlOpener.openUrl(url = it) },
|
||||
|
|
|
|||
|
|
@ -322,11 +322,14 @@ internal class WalletContentClickIntentsImplementor @Inject constructor(
|
|||
?.currency
|
||||
?: return@launch
|
||||
|
||||
getExplorerTransactionUrlUseCase(txHash = txHash, networkId = currency.network.id)
|
||||
.fold(
|
||||
ifLeft = { Timber.e(it.toString()) },
|
||||
ifRight = { router.openUrl(url = it) },
|
||||
)
|
||||
getExplorerTransactionUrlUseCase(
|
||||
txHash = txHash,
|
||||
networkId = currency.network.id,
|
||||
currency = currency,
|
||||
).fold(
|
||||
ifLeft = { Timber.e(it.toString()) },
|
||||
ifRight = { router.openUrl(url = it) },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue