keplr-wallet icon indicating copy to clipboard operation
keplr-wallet copied to clipboard

After adding "evm" configuration, gas fee estimation is wrong

Open zakir-code opened this issue 10 months ago • 1 comments

Describe the bug

If the evm configuration is set, eip1559 will be used first to calculate the handling fee. However, the cosmos transaction fee is calculated according to minimum-gas-prices. The gas prices in the two places may not be the same. If minimum-gas-prices is larger and always fails when sending transactions using keplr.

https://github.com/chainapsis/keplr-wallet/blob/9ee1c40b158a51f6534bae01c1840a54bea9120c/packages/hooks/src/tx/fee.ts#L553-L561

Expected behavior

I wonder if I can add configuration in evm, such as enable_eip1559, or compare the final calculation results of the two, and use the larger one first.

zakir-code avatar Apr 02 '24 06:04 zakir-code