Updated on 2026-08-14

This commit is contained in:
Tangem 2023-01-09 13:56:57 +03:00
parent 30c34a9e14
commit 01e5b6d95a
15 changed files with 322 additions and 124 deletions

View file

@ -33,7 +33,6 @@ class TransactionManagerImpl(
private val appStateHolder: AppStateHolder,
) : TransactionManager {
@Throws(IllegalStateException::class)
override suspend fun sendTransaction(
networkId: String,
amountToSend: BigDecimal,
@ -63,6 +62,10 @@ class TransactionManagerImpl(
return handleSendResult(sendResult)
}
override fun getNativeTokenDecimals(networkId: String): Int {
return Blockchain.fromNetworkId(networkId)?.decimals() ?: error("blockchain not found")
}
@Throws(IllegalStateException::class)
override suspend fun getFee(
networkId: String,