Last active
April 8, 2018 02:07
-
-
Save thdaraujo/d127ae5192c06631d4bb680eae463c3e to your computer and use it in GitHub Desktop.
A simple smart contract with Solidity.
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.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