//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract ValueContract { string word; address owner; funtion valueContract(string _word) public { word = _word; owner = msg.sender; } //The owner and only him can give the ownership on the contract! function transferOwnership(address _newOwner) public { require(msg.sender == owner); owner = _newOwner; } function setWordFree(string _word) public { requires(msg.sender == owner); word = _word; } function setWord(string _word) public payable { require(msg.value == 1 ether); word = _word; } function getWord() public view returns (string) { return word; } }
0.4.18