Skip to content

Commit

Permalink
rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 12, 2024
1 parent 4800b82 commit cfcebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/account/utils/draft-ERC7579Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ library ERC7579Utils {
// Get the array length. offset + 32 is bounded by bufferLength so does not overflow.
uint256 arrayLength = uint256(bytes32(executionCalldata[offset:offset + 32]));

// Get the array as a bytes slice, and check it is long enough:
// Check that the buffer is long enough to store the array elements as "offset pointer":
// - each element of the array is an "offset pointer" to the data
// - each offset pointer (to an array element) takes 32 bytes
// - validity of the calldata at that location is checked when the array element is accessed.
Expand Down

0 comments on commit cfcebc9

Please sign in to comment.