contract owned {
    //合约创建者账户
    address public owner;

    function owned() public {
        owner = msg.sender;
    }

    //判断是否合约的创建者
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    //转换合约的拥有者
    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}
function transferOwnership(address newOwner) onlyOwner public {
    owner = newOwner;
}

//转换合约的拥有者