Skip to content

Commit

Permalink
[#754] Update comment in SafeL2Mod
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Jul 1, 2024
1 parent 9c9136b commit c512034
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/4337/contracts/test/SafeL2Mod.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ contract SafeL2Mod is SafeL2 {
// When handling contract signatures the address of the contract is encoded into r
currentOwner = address(uint160(uint256(r)));

// Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes
// This check is not completely accurate, since it is possible that more signatures than the threshold are send.
// Here we only check that the pointer is not pointing inside the part that is being processed
// Require that the signature data pointer is pointing to the expected location, at the end of processed contract signatures.
require(uint256(s) == offset, "GS021");

// Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)
Expand Down

0 comments on commit c512034

Please sign in to comment.