Skip to content

Commit

Permalink
fix(evm): Allowlist overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia committed Jul 2, 2024
1 parent e71d411 commit 1ee31d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/evm/contracts/allowlists/SimpleAllowList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract SimpleAllowList is AllowList, OwnableRoles {
}

/// @inheritdoc AllowList
function setAllowed(address[] calldata users_, bool[] calldata allowed_) external onlyRoles(LIST_MANAGER_ROLE) {
function setAllowed(address[] calldata users_, bool[] calldata allowed_) external override onlyRoles(LIST_MANAGER_ROLE) {
if (users_.length != allowed_.length) revert BoostError.LengthMismatch();

for (uint256 i = 0; i < users_.length; i++) {
Expand All @@ -51,7 +51,7 @@ contract SimpleAllowList is AllowList, OwnableRoles {

/// @inheritdoc AllowList
/// @notice This function is not implemented in this contract
function setDenied(address[] calldata users_, bool[] calldata denied_) external onlyOwner {
function setDenied(address[] calldata users_, bool[] calldata denied_) external override onlyOwner {
revert BoostError.NotImplemented();
}
}
4 changes: 2 additions & 2 deletions packages/evm/contracts/allowlists/SimpleDenyList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract SimpleDenyList is AllowList {
}

/// @inheritdoc AllowList
function setAllowed(address[] calldata users_, bool[] calldata allowed_) external onlyOwner {
function setAllowed(address[] calldata users_, bool[] calldata allowed_) external override onlyOwner {
revert BoostError.NotImplemented();
}

Expand All @@ -45,7 +45,7 @@ contract SimpleDenyList is AllowList {
/// @param denied_ The denied status of each user
/// @dev The length of the `users_` and `denied_` arrays must be the same
/// @dev This function can only be called by the owner
function setDenied(address[] calldata users_, bool[] calldata denied_) external onlyOwner {
function setDenied(address[] calldata users_, bool[] calldata denied_) external override onlyOwner {
if (users_.length != denied_.length) revert BoostError.LengthMismatch();

for (uint256 i = 0; i < users_.length; i++) {
Expand Down

0 comments on commit 1ee31d3

Please sign in to comment.