Updated on 2026-08-14
This commit is contained in:
parent
5e4d8a9113
commit
c8acba2f3b
3 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue