-
Notifications
You must be signed in to change notification settings - Fork 391
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: catch infite loops without condition and body #3650
Conversation
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):No automated checks match this pull request. ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Thanks for the fix @petar-dambovaliev! However, this PR doesn't fix the actual issue which is ensuring that the gas metering actually runs out, unless I am missing something? |
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.
we shouldn't reject infinite loops at the language level. if somebody wants to shoot themselves in the foot when using gno run
, they should be able to do so. our gas system should catch this and prevent this on-chain.
Apologies this seemed like a random close; my intent in closing PRs this way is that the approach needs a complete re-visit, and I see issues as a better venue for discussion in cases like these rather than PRs, which should be for work that is potentially imperfect, but in the right direction. |
Agreed. In Any case, this is orthogonal to tweeks in the gas system. |
closes 3612