Skip to content

Commit

Permalink
fix: revoke SET_SIGNATURE_VALIDATOR_PERMISSION granted to previous DA…
Browse files Browse the repository at this point in the history
…O versions (#468)
  • Loading branch information
heueristik authored Sep 21, 2023
1 parent 904efba commit 2a10844
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/contracts/src/core/dao/DAO.sol
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ contract DAO is
_reentrancyStatus = _NOT_ENTERED;
_registerInterface(type(IProtocolVersion).interfaceId);
}

// Revoke the `SET_SIGNATURE_VALIDATOR_PERMISSION` that was deprecated in v1.4.0.
if (_previousProtocolVersion[1] <= 3) {
_revoke({
_where: address(this),
_who: address(this),
_permissionId: keccak256("SET_SIGNATURE_VALIDATOR_PERMISSION")
});
}
}

/// @inheritdoc PermissionManager
Expand Down

0 comments on commit 2a10844

Please sign in to comment.