Skip to content
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

stylus test: infinite loop should create out-of-gas error #2778

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

ganeshvanahalli
Copy link
Contributor

This PR adds a test that calls a program (arbitrator/prover/test-cases/user.wat) which has an infinite loop and makes sure that this transaction (called with 1M Gas) fails with an out of gas (vm.ErrOutOfGas) error.

Resolves NIT-2849

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Nov 8, 2024
gligneul
gligneul previously approved these changes Nov 8, 2024
Copy link
Contributor

@gligneul gligneul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshuacolvin0 joshuacolvin0 merged commit 57ce64f into master Nov 14, 2024
16 checks passed
@joshuacolvin0 joshuacolvin0 deleted the stylusprogram-infiniteloop-outofgaserror branch November 14, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants