Skip to content

Commit

Permalink
feat: add safe as validator module addr
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroknots committed Jul 1, 2024
1 parent dd2b4c5 commit 3c57ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Safe7579.sol
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@ contract Safe7579 is ISafe7579, SafeOp, SupportViewer, AccessControl, Initialize
returns (bool)
{
if (moduleType == MODULE_TYPE_VALIDATOR) {
// Safe7579 adapter allows for validator fallback to Safe's checkSignatures().
// It can thus be considered a valid validtor module
if (module == msg.sender) return true;
return _isValidatorInstalled(module);
} else if (moduleType == MODULE_TYPE_EXECUTOR) {
return _isExecutorInstalled(module);
Expand Down

0 comments on commit 3c57ecd

Please sign in to comment.