Skip to content

Commit

Permalink
Remove unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed May 20, 2024
1 parent c3425b6 commit 19b9ea6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import io.horizontalsystems.bankwallet.core.convertedError
import io.horizontalsystems.bankwallet.core.providers.Translator
import io.horizontalsystems.bankwallet.modules.evmfee.FeeSettingsError
import io.horizontalsystems.bankwallet.modules.evmfee.FeeSettingsWarning
import io.horizontalsystems.bankwallet.modules.sendevmtransaction.SendEvmTransactionService

class CautionViewItemFactory(
private val baseCoinService: EvmCoinService
Expand Down Expand Up @@ -77,15 +76,6 @@ class CautionViewItemFactory(

private fun convertError(error: Throwable): Pair<String, String> =
when (val convertedError = error.convertedError) {
is SendEvmTransactionService.TransactionError.InsufficientBalance -> {
Pair(
Translator.getString(R.string.EthereumTransaction_Error_Title),
Translator.getString(
R.string.EthereumTransaction_Error_InsufficientBalance,
baseCoinService.coinValue(convertedError.requiredBalance).getFormattedFull()
)
)
}
is EvmError.InsufficientBalanceWithFee -> {
Pair(
Translator.getString(R.string.EthereumTransaction_Error_Title),
Expand Down

This file was deleted.

0 comments on commit 19b9ea6

Please sign in to comment.