Updated on 2026-08-14

This commit is contained in:
Tangem 2024-06-07 14:37:52 +05:00
parent 79b04f232e
commit 774a4ca1a6
8 changed files with 34 additions and 25 deletions

View file

@ -67,7 +67,7 @@ internal class DefaultTransactionRepository(
isSwap: Boolean,
txExtras: TransactionExtras?,
hash: String?,
): Result<Unit> {
): Result<Unit> = withContext(coroutineDispatcherProvider.io) {
val blockchain = Blockchain.fromId(network.id.value)
val walletManager = walletManagersStore.getSyncOrNull(
userWalletId = userWalletId,
@ -77,7 +77,7 @@ internal class DefaultTransactionRepository(
val validator = walletManager as? TransactionValidator
return if (validator != null) {
if (validator != null) {
val transaction = walletManager.createTransactionInternal(
amount = amount,
fee = fee ?: Fee.Common(amount = amount),