Skip to content

Commit 54a4043

Browse files
committedJan 31, 2025
updated test comments
1 parent 50af639 commit 54a4043

File tree

1 file changed

+3
-3
lines changed
  • noir-projects/noir-contracts/contracts/test_contract/src

1 file changed

+3
-3
lines changed
 

‎noir-projects/noir-contracts/contracts/test_contract/src/test.nr

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ unconstrained fn test_note_type_id() {
1616
unconstrained fn test_storage_slot_allocation() {
1717
// This tests that sufficient storage slots are assigned to each state variable so that they do not interfere with
1818
// one another. The space a state variable needs is determined by the N value in its implementation of the Storage
19-
// trait. Most state variables bind N to the serialization length of the type they hold.
19+
// trait. Most state variables bind N to the packed length of the type they hold.
2020
//
2121
// This is the storage declaration:
2222
//
@@ -37,7 +37,7 @@ unconstrained fn test_storage_slot_allocation() {
3737
let mut expected_slot = 1;
3838
assert_eq(Test::storage_layout().example_constant.slot, expected_slot);
3939

40-
// Even though example_constant holds TestNote, which serializes to a length larger than 1, notes always reserve a
40+
// Even though example_constant holds TestNote, which packs to a length larger than 1, notes always reserve a
4141
// single slot.
4242
expected_slot += 1;
4343
assert_eq(Test::storage_layout().example_set.slot, expected_slot);
@@ -46,7 +46,7 @@ unconstrained fn test_storage_slot_allocation() {
4646
expected_slot += 1;
4747
assert_eq(Test::storage_layout().example_struct.slot, expected_slot);
4848

49-
// example_struct allocates 5 slots because it is not a note and it's serialization length is 5.
49+
// example_struct allocates 5 slots because it is not a note and it's packed length is 5.
5050
expected_slot += 5;
5151
assert_eq(Test::storage_layout().example_struct_in_map.slot, expected_slot);
5252

0 commit comments

Comments
 (0)