Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand comment
Browse files Browse the repository at this point in the history
alvrs committed Sep 16, 2023
1 parent 27a50f6 commit 28efb9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/store/src/Storage.sol
Original file line number Diff line number Diff line change
@@ -214,7 +214,8 @@ library Storage {
* Load up to 32 bytes from storage at the given storagePointer and offset.
* The return value is left-aligned, the bytes beyond the length are not zeroed out,
* and the caller is expected to truncate as needed.
* The field can span up to two storage slots.
* Since fields are tightly packed, they can span more than one slot.
* Since the they're max 32 bytes, they can span at most 2 slots.
*/
function loadField(uint256 storagePointer, uint256 length, uint256 offset) internal view returns (bytes32 result) {
if (offset >= 32) {

0 comments on commit 28efb9d

Please sign in to comment.