Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-03 12:56:36 +03:00
parent e7f862423d
commit 4cfea7fd9a
9 changed files with 67 additions and 1 deletions

View file

@ -41,6 +41,7 @@ object BlockchainFeeUtils {
private fun Fee.increaseEthGasLimitInNeeded(increaseBy: Int): Fee {
return when (this) {
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
is Fee.Ethereum.EIP1559,
is Fee.Ethereum.Legacy,
-> this.increaseGasLimitBy(increaseBy)
@ -76,6 +77,7 @@ object BlockchainFeeUtils {
return when (this) {
is Fee.Ethereum.EIP1559 -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
is Fee.Ethereum.Legacy -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
}
}
}