Updated on 2026-08-14
This commit is contained in:
parent
e7f862423d
commit
4cfea7fd9a
9 changed files with 67 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ internal class EthereumCustomFeeConverter(
|
|||
|
||||
addAll(
|
||||
when (value) {
|
||||
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
|
||||
is Fee.Ethereum.EIP1559 -> eipFeeConverter.convert(value)
|
||||
is Fee.Ethereum.Legacy -> legacyFeeConverter.convert(value)
|
||||
},
|
||||
|
|
@ -55,6 +56,7 @@ internal class EthereumCustomFeeConverter(
|
|||
|
||||
override fun convertBack(normalFee: Fee.Ethereum, value: ImmutableList<CustomFeeFieldUM>): Fee.Ethereum {
|
||||
return when (normalFee) {
|
||||
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
|
||||
is Fee.Ethereum.EIP1559 -> eipFeeConverter.convertBack(normalFee = normalFee, value = value)
|
||||
is Fee.Ethereum.Legacy -> legacyFeeConverter.convertBack(normalFee = normalFee, value = value)
|
||||
}
|
||||
|
|
@ -62,6 +64,7 @@ internal class EthereumCustomFeeConverter(
|
|||
|
||||
override fun getGasLimitIndex(feeValue: Fee.Ethereum): Int {
|
||||
return when (feeValue) {
|
||||
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
|
||||
is Fee.Ethereum.EIP1559 -> eipFeeConverter.getGasLimitIndex(feeValue)
|
||||
is Fee.Ethereum.Legacy -> legacyFeeConverter.getGasLimitIndex(feeValue)
|
||||
}
|
||||
|
|
@ -74,6 +77,7 @@ internal class EthereumCustomFeeConverter(
|
|||
value: String,
|
||||
): ImmutableList<CustomFeeFieldUM> {
|
||||
return when (feeValue) {
|
||||
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
|
||||
is Fee.Ethereum.EIP1559 -> eipFeeConverter.onValueChange(
|
||||
feeValue = feeValue,
|
||||
customValues = customValues,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue