Skip to content

Commit

Permalink
Update variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Jan 22, 2024
1 parent 7b3108f commit a601b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/session/SessionKeyPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ contract SessionKeyPlugin is ISessionKeyPlugin, SessionKeyPermissions, BasePlugi
// Get the offset of the bytes[][] used for permissions updates. The offset for this field is stored at
// the third word of `data`. Note that `data.offset` refers to the start of the actual data contents,
// one word after the length.
let permissionUpdateRelativeOffset := calldataload(add(data.offset, 0x40))
let permissionUpdatesRelativeOffset := calldataload(add(data.offset, 0x40))
// We now have the relative offset of the bytes[][] in `data`. We need to add the starting offset
// (aka `data.offset`) to get the absolute offset.
let permissionUpdatesLengthOffset := add(data.offset, permissionUpdateRelativeOffset)
let permissionUpdatesLengthOffset := add(data.offset, permissionUpdatesRelativeOffset)
// Note that solidity expects the field `var.offset` to point to the start of the actual data contents,
// one word after the length. Therefore, we add 0x20 here to get the correct offset.
permissionUpdates.offset := add(0x20, permissionUpdatesLengthOffset)
Expand Down

0 comments on commit a601b27

Please sign in to comment.