-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove usage of gasleft in execute flows #459
Comments
Could you please give some more context on this? I thought this was driven by the EIP4337 spec |
It is, but some other networks also considered this a bad usage. E.g. arbitrum mentioned in their docs that their gas metering behaves different and therefore you should not depend on this. |
Could you please elaborate on what execute flows are in the scope of this ticket? Is Also, regarding Arbitrum, if I understand it correctly, the problem is that it will not represent the total fee amount for the transaction because of its two-dimensional gas structure (you also need to pay for L1 call data), which may be critical for refund logic, but it doesn't seem to be related with |
Hmmm yeah good question. As this seems to be unclear what networks/tool really have dependencies to it (as I also don't have references anymore and might remember incorrectly) I would only focus on the flows where we know it would be helpful to change it (namely This is for v1.4.0. For v2 I would remove all usage of |
Some networks discourage the use of
gasleft
therefore it should be replace withtype(uint256).max
ToDo:
The text was updated successfully, but these errors were encountered: