-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(protocol): check 63/64 gasleft() not smaller than specified gaslimit #16613
Conversation
fix(protocol): check 63/64 gasleft() not smaller than specified gaslimit
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this discussion, I remember it still from the Loopring smart wallet days! For me this is still a UI issue because the gas limit can simply be 1/64 higher to avoid it if it would ever be a problem. But the check is valid, just depends on what you expect the smart contract to check and I think this check goes pretty far because the gas limit is already just an abstract number for users.
Simplified the changes:
|
Co-authored-by: David <david@taiko.xyz>
See code-423n4/2024-03-taiko-findings#180