Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-12 12:00:52 +04:00
parent 1472431435
commit fdc22278e6
9 changed files with 60 additions and 8 deletions

View file

@ -422,7 +422,11 @@ internal class DefaultTransactionRepository(
preparer.prepareAndSignMultiple(transactionData, signer)
}
override suspend fun sendTransactionHash(hash: String, transactionType: EventTransactionTypeDto) {
override suspend fun sendTransactionHash(
hash: String,
transactionType: EventTransactionTypeDto,
userAddress: String?,
) {
runCatching(dispatchers.io) {
val operationType = when (transactionType) {
EventTransactionTypeDto.DEPOSIT -> OperationType.YIELD_DEPOSIT
@ -432,6 +436,7 @@ internal class DefaultTransactionRepository(
val body = TransactionEventBody(
operationType = operationType,
transactionId = hash,
userAddress = userAddress,
)
val response = tangemTechApi.transactionEvents(body)
response.fold(