Skip to content

Commit

Permalink
Merge branch 'immutable-strings-array-lib' into ryley/pro-1056-pmp-sm…
Browse files Browse the repository at this point in the history
…art-contracts
  • Loading branch information
ryley-o committed Feb 25, 2025
2 parents 565925e + 4cc824e commit 4956ce5
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ library ImmutableStringArray {
// store the length of the strings array in the first 8 bytes of the packedData
assembly ("memory-safe") {
ptr := add(packedData, 0x20) // pointer to first byte of packedData
let existing := mload(ptr) // load the full 32-byte word
mstore(ptr, shl(192, arrayLength)) // left-align only 8 bytes in the 32-byte slot
ptr := add(ptr, 8) // move pointer forward by 8 bytes
}
Expand Down

0 comments on commit 4956ce5

Please sign in to comment.