ethermint icon indicating copy to clipboard operation
ethermint copied to clipboard

Skip fee check for simulate tx

Open mattverse opened this issue 3 years ago • 0 comments

Proposal: Skip fee check for simulate tx

Current behavior: Current fee handler (https://github.com/evmos/ethermint/blob/main/app/ante/fees.go#L27) takes in simulator option as params, which is mostly used to simulate tx and figure out the estimated gas amount needed for the transaction. The problem right now is that regardless of the simulator argument being true or not, it requires gas to simulate and find out how much gas is expected to be needed.

Desired behavior: When the simulator option is true, skip gas check

Use case: The simulate function is hihgly used in Keplr to estimate Gas for transactions, but Ethermint does not support this feature of estimating gas without gas, thus this feature being a bottle neck for estimating gas in Keplr.

mattverse avatar Aug 04 '22 07:08 mattverse