Updated on 2026-08-14
This commit is contained in:
parent
e7f862423d
commit
4cfea7fd9a
9 changed files with 67 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ fun Fee.increaseGasLimitBy(percent: BigInteger): Fee {
|
|||
value = increasedGasLimit.toBigDecimal().multiply(increasedGasPrice).movePointLeft(this.amount.decimals),
|
||||
)
|
||||
return when (this) {
|
||||
is Fee.Ethereum.TokenCurrency -> error("handle in [REDACTED_TASK_KEY]")
|
||||
is Fee.Ethereum.EIP1559 -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
|
||||
is Fee.Ethereum.Legacy -> copy(amount = increasedAmount, gasLimit = increasedGasLimit)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue