Skip to content

Commit

Permalink
fix: bug in validator module call in safe7579
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroknots committed Mar 29, 2024
1 parent 9cd99ec commit e962895
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion accounts/safe7579/src/SafeERC7579.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ contract SafeERC7579 is ISafeOp, IERC7579Account, AccessControl, IMSA, HookManag
if (!_isValidatorInstalled(validator)) return _validateSignatures(userOp);

// bubble up the return value of the validator module
validSignature = IValidator(validator).validateUserOp(userOp, userOpHash);
bytes memory retData = _executeReturnData({
safe: msg.sender,
target: validator,
value: 0,
callData: abi.encodeCall(IValidator.validateUserOp, (userOp, userOpHash))
});
validSignature = abi.decode(retData, (uint256));

// pay prefund
if (missingAccountFunds != 0) {
Expand Down

0 comments on commit e962895

Please sign in to comment.