Skip to content

Commit

Permalink
Qualify that storage slots are shared for contiguous data
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent authored Nov 15, 2018
1 parent 92ebf66 commit bddbdeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/miscellaneous.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Miscellaneous
Layout of State Variables in Storage
************************************

Statically-sized variables (everything except mapping and dynamically-sized array types) are laid out contiguously in storage starting from position ``0``. Multiple items that need less than 32 bytes are packed into a single storage slot if possible, according to the following rules:
Statically-sized variables (everything except mapping and dynamically-sized array types) are laid out contiguously in storage starting from position ``0``. Multiple, contiguous items that need less than 32 bytes are packed into a single storage slot if possible, according to the following rules:

- The first item in a storage slot is stored lower-order aligned.
- Elementary types use only that many bytes that are necessary to store them.
Expand Down

0 comments on commit bddbdeb

Please sign in to comment.