-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat: Encode NoteExecutionHint
into NoteMetadata
#816
Conversation
NoteExecutionHint
into NoteMetadata
Is this ready for review or not yet? |
Yes, sorry for the confusion |
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.
Thank you! Looks good! Not a full review yet, but I reviewed all of the non-test code and left some comments inline.
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.
Looks good! Thank you! I left a few small comments inline. After these are addressed, we can merge.
# populate the metadata | ||
# swap movup.4 movup.4 | ||
movup.3 movup.3 push.TWO_POW_38 mul add movup.2 | ||
# => [aux, encoded_type_and_ex_hint, tag] | ||
|
||
# encode note_type and execution_hint into a single element | ||
exec.account::get_id | ||
# => [sender_acct_id, aux, encoded_type_and_ex_hint, tag] |
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.
A couple comments here:
- Line 280 should probably be deleted.
- Comment on line 284 should probably be moved to line 279.
- A new comment should probably be written on line 284.
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.
Looks good! Thank you!
Closes #582