|
|
|
@ -1,8 +1,11 @@ |
|
|
|
|
pragma solidity 0.5.0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contract Origin { |
|
|
|
|
address public owner; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
/** |
|
|
|
|
* @dev The Ownable constructor sets the original `owner` of the contract to the sender |
|
|
|
|
* account. |
|
|
|
|
*/ |
|
|
|
@ -12,7 +15,7 @@ contract Origin { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Throws if called by any account other than the owner. |
|
|
|
|
* @dev Throws if called by any account other than the owner. |
|
|
|
|
*/ |
|
|
|
|
modifier onlyOwner() { |
|
|
|
|
if (tx.origin != owner) { |
|
|
|
@ -24,7 +27,7 @@ contract Origin { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Allows the current owner to transfer control of the contract to a newOwner. |
|
|
|
|
* @param newOwner The address to transfer ownership to. |
|
|
|
|
* @param newOwner The address to transfer ownership to. |
|
|
|
|
*/ |
|
|
|
|
function transferOwnership(address newOwner) onlyOwner { |
|
|
|
|
if (newOwner != address(0)) { |
|
|
|
|