Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-21 17:40:43 +03:00
parent 638cbc9d23
commit 32ae17c016
9 changed files with 31 additions and 66 deletions

View file

@ -425,8 +425,8 @@ internal class SendConfirmModel @Inject constructor(
),
)
},
ifRight = {
updateTransactionStatus(txData)
ifRight = { txHash ->
updateTransactionStatus(txData, txHash)
addTokenToWalletIfNeeded()
sendBalanceUpdater.scheduleUpdates()
sendAnalyticHelper.sendSuccessAnalytics(
@ -479,9 +479,9 @@ internal class SendConfirmModel @Inject constructor(
}
}
private fun updateTransactionStatus(txData: TransactionData.Uncompiled) {
private fun updateTransactionStatus(txData: TransactionData.Uncompiled, txHash: String) {
val txUrl = getExplorerTransactionUrlUseCase(
txHash = txData.hash.orEmpty(),
txHash = txHash.ifEmpty { txData.hash.orEmpty() },
networkId = cryptoCurrency.network.id,
).getOrNull().orEmpty()
_uiState.update(SendConfirmSentStateTransformer(txData, txUrl))