@@ -16,7 +16,7 @@ unconstrained fn test_note_type_id() {
16
16
unconstrained fn test_storage_slot_allocation () {
17
17
// This tests that sufficient storage slots are assigned to each state variable so that they do not interfere with
18
18
// 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.
20
20
//
21
21
// This is the storage declaration:
22
22
//
@@ -37,7 +37,7 @@ unconstrained fn test_storage_slot_allocation() {
37
37
let mut expected_slot = 1 ;
38
38
assert_eq (Test ::storage_layout ().example_constant .slot , expected_slot );
39
39
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
41
41
// single slot.
42
42
expected_slot += 1 ;
43
43
assert_eq (Test ::storage_layout ().example_set .slot , expected_slot );
@@ -46,7 +46,7 @@ unconstrained fn test_storage_slot_allocation() {
46
46
expected_slot += 1 ;
47
47
assert_eq (Test ::storage_layout ().example_struct .slot , expected_slot );
48
48
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.
50
50
expected_slot += 5 ;
51
51
assert_eq (Test ::storage_layout ().example_struct_in_map .slot , expected_slot );
52
52
0 commit comments