Skip to content

Instantly share code, notes, and snippets.

@thdaraujo
Last active April 8, 2018 02:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thdaraujo/d127ae5192c06631d4bb680eae463c3e to your computer and use it in GitHub Desktop.
Save thdaraujo/d127ae5192c06631d4bb680eae463c3e to your computer and use it in GitHub Desktop.
A simple smart contract with Solidity.
pragma solidity ^0.4.17;
contract Inbox{
string public message;
function Inbox(string initialMessage) public {
message = initialMessage;
}
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