Updated on 2026-08-14
This commit is contained in:
parent
1472431435
commit
fdc22278e6
9 changed files with 60 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue