diff --git a/src/BlacklistValidatorUpgradeable.sol b/src/BlacklistValidatorUpgradeable.sol index 6c407e8..72ae5e6 100644 --- a/src/BlacklistValidatorUpgradeable.sol +++ b/src/BlacklistValidatorUpgradeable.sol @@ -164,7 +164,7 @@ contract BlacklistValidatorUpgradeable is * @dev add admin account. * @param account The address of the account. */ - function addAdminAccount(address account) public virtual { + function addAdminAccount(address account) public virtual onlyOwner { grantRole(ADMIN_ROLE, account); emit AdminAccountAdded(account); }