diff --git a/contracts/common/Controlled.sol b/contracts/common/Controlled.sol index b78dcea..2fe6eee 100644 --- a/contracts/common/Controlled.sol +++ b/contracts/common/Controlled.sol @@ -18,6 +18,12 @@ contract Controlled { controller = msg.sender; } + /// @notice Changes the controller of the contract + /// @param _newController The new controller of the contract + function changeController(address _newController) public onlyController { + controller = _newController; + } + function changeControllerAccess(address _controller, bool _access) public onlyController { controllers[_controller] = _access; }