mirror of
https://github.com/status-im/github-oracle.git
synced 2026-08-30 03:11:07 +00:00
17 lines
562 B
Solidity
17 lines
562 B
Solidity
pragma solidity ^0.4.11;
|
|
|
|
contract Controlled {
|
|
/// @notice The address of the controller is the only address that can call
|
|
/// a function with this modifier
|
|
modifier onlyController { if (msg.sender != controller) throw; _; }
|
|
|
|
address public controller;
|
|
|
|
function Controlled() { controller = msg.sender;}
|
|
|
|
/// @notice Changes the controller of the contract
|
|
/// @param _newController The new controller of the contract
|
|
function changeController(address _newController) onlyController {
|
|
controller = _newController;
|
|
}
|
|
} |