Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 8, 2025
1 parent 0cf2d10 commit 92536df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use dep::aztec::macros::aztec;

#[aztec]
contract Test {
// Note: If you import a new kind of note you will most likely need to update the test_note_type_id test
// as the note type ids of current notes might have changed.

use dep::aztec::encrypted_logs::encrypted_event_emission::encode_and_encrypt_event_unconstrained;
use dep::aztec::encrypted_logs::encrypted_note_emission::encode_and_encrypt_note;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use dep::value_note::value_note::ValueNote;

#[test]
unconstrained fn test_note_type_id() {
// I don't really know why the ids are assigned in this way, but the important thing is that they are sequential
// and start from 0.
assert_eq(UintNote::get_note_type_id(), 0, "UintNote type id should be 0");
assert_eq(ValueNote::get_note_type_id(), 1, "ValueNote type id should be 1");
assert_eq(TestNote::get_note_type_id(), 2, "TestNote type id should be 2");
Expand Down

0 comments on commit 92536df

Please sign in to comment.