From 544706c9727f23e04c0d42a5309e03b19f50f2f9 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 26 Nov 2018 09:12:49 -0400 Subject: [PATCH] Missing function --- contracts/common/Controlled.sol | 6 ++++++ 1 file changed, 6 insertions(+) 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; }