From 697068f85d9e3a1f2b4952a25075c871e4aeb025 Mon Sep 17 00:00:00 2001 From: Foivos Date: Tue, 31 Oct 2023 19:02:48 +0200 Subject: [PATCH] addressed a comment --- contracts/utils/Operatable.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/utils/Operatable.sol b/contracts/utils/Operatable.sol index 3c0defb7..9cfbb9cb 100644 --- a/contracts/utils/Operatable.sol +++ b/contracts/utils/Operatable.sol @@ -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)); } /**