Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 12, 2024
1 parent 35c74ab commit 4800b82
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 @@ -193,7 +193,7 @@ library ERC7579Utils {

// Get the array as a bytes slice, and check it is long enough:
// - each element of the array is an "offset pointer" to the data
// - each offset pointer takes 32 bytes
// - 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.
// - `arrayLength * 32` does not overflow because `arrayLength` is less than `2**64`.
// Since we know bufferLength is at least offset + 32, we can subtract with no overflow risk.
Expand Down

0 comments on commit 4800b82

Please sign in to comment.