contract owned {
        address public owner;

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

        modifier onlyOwner {
            require(msg.sender == owner);
            _;
        }

        //所有权转移
        function transferOwnership(address newOwner) onlyOwner {
            owner = newOwner;
        }
    }
function transferOwnership(address newOwner) onlyOwner {
    owner = newOwner;
}

//所有权转移