Created
October 13, 2018 23:16
-
-
Save Lucas2k/b829aa4a12153d2084085555dbcb8c83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
contract MessageStore { | |
address private owner; | |
string private message; | |
constructor() public | |
{ | |
owner = msg.sender; | |
} | |
function setMessage(string newMessage) public | |
{ | |
message = newMessage; | |
} | |
function getMessage() public view returns(string) | |
{ | |
return message; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment