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

added verification for assert #14

Merged
merged 1 commit into from
May 24, 2024

Conversation

AntoineFONDEUR
Copy link
Collaborator

@AntoineFONDEUR AntoineFONDEUR commented May 15, 2024

Pull Request Title [TO BE UPDATED]

Time spent on this PR: 2 hours.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Currently there is no check whether an assert is valid.

Resolves #6

What is the new behavior?

Now an AssertEqError is raised when asserts are not valid (in AssertEq and Call opcodes).

src/utils.ts Outdated Show resolved Hide resolved
src/vm.ts Outdated Show resolved Hide resolved
@AntoineFONDEUR
Copy link
Collaborator Author

I hope this is better

ClementWalter
ClementWalter previously approved these changes May 22, 2024
ClementWalter
ClementWalter previously approved these changes May 23, 2024
@ClementWalter ClementWalter merged commit c7f578e into ClementWalter:main May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add validation logic to step
2 participants