Skip to content

Commit

Permalink
Remove MAX_AUTH_ACTIONS restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusv committed Jul 16, 2024
1 parent 3f65b2b commit d2ae1da
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contracts/contracts/coordination/GlobalAllowList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ contract GlobalAllowList is IEncryptionAuthorizer {

mapping(uint32 => uint256) public authActions;

uint32 public constant MAX_AUTH_ACTIONS = 100;

/**
* @notice Emitted when an address authorization is set
* @param ritualId The ID of the ritual
Expand Down Expand Up @@ -153,8 +151,6 @@ contract GlobalAllowList is IEncryptionAuthorizer {
function setAuthorizations(uint32 ritualId, address[] calldata addresses, bool value) internal {
require(coordinator.isRitualActive(ritualId), "Only active rituals can set authorizations");

require(addresses.length <= MAX_AUTH_ACTIONS, "Too many addresses");

_beforeSetAuthorization(ritualId, addresses, value);
for (uint256 i = 0; i < addresses.length; i++) {
bytes32 lookupKey = LookupKey.lookupKey(ritualId, addresses[i]);
Expand Down

0 comments on commit d2ae1da

Please sign in to comment.