[Bug]: gasLimit auto increased when sending erc20 #19318
Labels
Sev2-normal
Normal severity; minor loss of service or inconvenience.
team-confirmations-system
DEPRECATED: please use "team-confirmations" label instead
team-transactions
Transactions team
type-enhancement
Describe the bug
when I send erc20 with MM, it uses gasLimit which 50% greater than
eth_estimateGas
return. I did some grep around and it seems to be a "feature". #8771 (comment)However this become a bug in our evm network, where gasLimit has some specific encoding, so can't be altered randomly. I hope to make MM use exactly what
eth_estimateGas
return.This 50% increase is a very opinionated operation that's only required for networks that has the gas underestimation issue. So I think there should either be a way to turn it off (make it default behaviour, but optional), or force enable it ONLY for certain networks that really need it.
So my question is:
eth_estimateGas
return when sending erc20"Thanks!
Steps to reproduce
eth_estimateGas
returnsX
X * 1.5
as gasLimitError messages or log output
No response
Version
10.30.4
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: