Skip to content

Commit

Permalink
addressed a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Oct 31, 2023
1 parent fc791d1 commit 697068f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/utils/Operatable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ contract Operatable is IOperatable, RolesBase, RolesConstants {
* @param operator_ The address of the new operator
*/
function _addOperator(address operator_) internal {
uint8[] memory roles = new uint8[](1);
roles[0] = uint8(Roles.OPERATOR);
_addRoles(operator_, roles);
_addRole(operator_, uint8(Roles.OPERATOR));
}

/**
Expand Down

0 comments on commit 697068f

Please sign in to comment.