Skip to content

Cleanup / refactor parsing in operations.c#108

Open
matthewbauer wants to merge 2 commits intodevelopfrom
error-on-bad-tag
Open

Cleanup / refactor parsing in operations.c#108
matthewbauer wants to merge 2 commits intodevelopfrom
error-on-bad-tag

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.

1 participant