Updated on 2026-08-14

This commit is contained in:
Tangem 2022-02-01 18:26:33 +03:00
parent b881339f57
commit 79a7e7263d
4 changed files with 8 additions and 16 deletions

View file

@ -205,13 +205,13 @@ private fun sendTransaction(
}
is SimpleResult.Failure -> {
when (sendResult.error) {
is CreateAccountUnderfunded -> {
val error = sendResult.error as CreateAccountUnderfunded
is BlockchainSdkError.CreateAccountUnderfunded -> {
val error = sendResult.error as BlockchainSdkError.CreateAccountUnderfunded
val reserve = error.minReserve.value?.stripZeroPlainString() ?: "0"
val symbol = error.minReserve.currencySymbol
dispatch(SendAction.SendError(TapError.CreateAccountUnderfunded(listOf(reserve, symbol))))
}
is SendException -> {
is BlockchainSdkError.SendException -> {
sendResult.error?.let { FirebaseCrashlytics.getInstance().recordException(it) }
}
is Throwable -> {