Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Jan 15, 2024
1 parent 020f896 commit 653bfaf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/smart-account/modules/AccountRecoveryModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ contract AccountRecoveryModule is
// Hash to be signed by guardians to make a guardianId
string public constant CONTROL_MESSAGE = "ACC_RECOVERY_SECURE_MSG";

uint256 private constant MODULE_SIGNATURE_OFFSET = 96;

// guardianID => (smartAccount => TimeFrame)
// guardianID = keccak256(signature over CONTROL_HASH)
// complies with associated storage rules
Expand Down Expand Up @@ -144,7 +142,7 @@ contract AccountRecoveryModule is
// Check if it is a userOp to submit a request or to immediately execute the request
// anything except adding a new request to this module is allowed only if securityDelay is 0
// which means user explicitly allowed to execute an operation immediately
// guardians signatures are also validated at this point
// guardians signatures are validated after it via _validateGuardiansSignatures
if (
bytes4(userOp.callData[0:4]) != EXECUTE_OPTIMIZED_SELECTOR &&
bytes4(userOp.callData[0:4]) != EXECUTE_SELECTOR
Expand Down

0 comments on commit 653bfaf

Please sign in to comment.