Skip to content

Commit

Permalink
Expending the member access plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Sep 19, 2023
1 parent abe0f92 commit db1b735
Show file tree
Hide file tree
Showing 2 changed files with 790 additions and 412 deletions.
6 changes: 4 additions & 2 deletions packages/contracts/src/MemberAccessPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import {IMultisig} from "@aragon/osx/plugins/governance/multisig/IMultisig.sol";
import {MainVotingPlugin, MAIN_SPACE_VOTING_INTERFACE_ID} from "./MainVotingPlugin.sol";
import {MEMBER_PERMISSION_ID} from "./constants.sol";

bytes4 constant MULTISIG_INTERFACE_ID = MemberAccessPlugin.initialize.selector ^
bytes4 constant MEMBER_ACCESS_INTERFACE_ID = MemberAccessPlugin.initialize.selector ^
MemberAccessPlugin.updateMultisigSettings.selector ^
MemberAccessPlugin.proposeNewMember.selector ^
MemberAccessPlugin.proposeRemoveMember.selector ^
MemberAccessPlugin.getProposal.selector;

/// @title Multisig - Release 1, Build 1
Expand Down Expand Up @@ -144,7 +146,7 @@ contract MemberAccessPlugin is IMultisig, PluginUUPSUpgradeable, ProposalUpgrade
bytes4 _interfaceId
) public view virtual override(PluginUUPSUpgradeable, ProposalUpgradeable) returns (bool) {
return
_interfaceId == MULTISIG_INTERFACE_ID ||
_interfaceId == MEMBER_ACCESS_INTERFACE_ID ||
_interfaceId == type(IMultisig).interfaceId ||
super.supportsInterface(_interfaceId);
}
Expand Down
Loading

0 comments on commit db1b735

Please sign in to comment.