mirror of
https://github.com/status-im/github-oracle.git
synced 2026-08-27 09:51:10 +00:00
Added function to transfer ownership of GitHubOracle
This commit is contained in:
+7
-1
@@ -1,11 +1,17 @@
|
||||
pragma solidity ^0.4.8;
|
||||
|
||||
contract Owned {
|
||||
|
||||
address public owner= msg.sender;
|
||||
event NewOwner(address owner);
|
||||
|
||||
modifier only_owner {
|
||||
if (msg.sender != owner) throw;
|
||||
_;
|
||||
}
|
||||
|
||||
function setOwner(address _owner)
|
||||
only_owner {
|
||||
owner = _owner;
|
||||
NewOwner(_owner);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user