Updated on 2026-08-14

This commit is contained in:
Tangem 2023-05-31 13:58:21 +03:00
parent 5e4d8a9113
commit c8acba2f3b
3 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ class RequestFeeMiddleware {
dispatch(FeeAction.FeeCalculation.SetFeeResult(result))
when(result) {
is TransactionFee.Single -> {
val fee = result.value.value ?: BigDecimal.ZERO
val fee = result.normal.value ?: BigDecimal.ZERO
if (fee.isZero()) {
dispatch(FeeAction.ChangeLayoutVisibility(main = false))
} else {

View file

@ -97,7 +97,7 @@ class FeeReducer : SendInternalReducer {
private fun createValueOfFeeAmount(feeType: FeeType, transactionFee: TransactionFee): Amount {
return when (transactionFee) {
is TransactionFee.Single -> {
transactionFee.value
transactionFee.normal
}
is TransactionFee.Choosable -> {
when (feeType) {

View file

@ -200,7 +200,7 @@ class TransactionManagerImpl(
// for not EVM blockchains set gasLimit ZERO for now
when (fee.data) {
is TransactionFee.Single -> {
val amount = (fee.data as TransactionFee.Single).value
val amount = (fee.data as TransactionFee.Single).normal
val singleFee = ProxyFee(
gasLimit = BigInteger.ZERO,
fee = convertToProxyAmount(amount = amount),