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

Cleanup / refactor parsing in operations.c #108

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

matthewbauer
Copy link
Collaborator

  • Throw parse error when bool is neither 0x00 or 0xff
  • Add ASSERT_EQ macro to src/operations.c

Tezos docs say that booleans must be either 0x00 (false) or
0xff (true). This change throws a parse error when those values are
outside those two values.
This makes the Michelson parsing code clearer. Basic function is to
error when two values are not equal to each other.
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.

None yet

1 participant