Skip to content

Commit

Permalink
Update noir-projects/noir-contracts/contracts/test_contract/src/test.nr
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
  • Loading branch information
benesjan and nventuro authored Jan 8, 2025
1 parent 873cb12 commit 5c4c5ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +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.
// The order in which the note types are sorted seems arbitrary and an implementation detail of Noir,
// 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 5c4c5ad

Please sign in to comment.