Skip to content

Commit

Permalink
made lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Oct 31, 2023
1 parent c555815 commit fc791d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/token-manager/TokenManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ abstract contract TokenManager is ITokenManager, Operatable, FlowLimit, Implemen
operator_ = operatorBytes.toAddress();
}

_addAccountRoles(operator_, 1 << uint8(Roles.FLOW_LIMITER) | 1 << uint8(Roles.OPERATOR));
_addAccountRoles(operator_, (1 << uint8(Roles.FLOW_LIMITER)) | (1 << uint8(Roles.OPERATOR)));
_setup(params);
}

Expand Down Expand Up @@ -216,7 +216,7 @@ abstract contract TokenManager is ITokenManager, Operatable, FlowLimit, Implemen
if (flowLimiter == address(0)) revert ZeroAddress();

if (!hasRole(flowLimiter, uint8(Roles.FLOW_LIMITER))) revert NotFlowLimiter(flowLimiter);

_removeRole(flowLimiter, uint8(Roles.FLOW_LIMITER));
}

Expand Down

0 comments on commit fc791d1

Please sign in to comment.