Skip to content

Instantly share code, notes, and snippets.

@mager
Created February 1, 2018 15:09
Show Gist options
  • Save mager/9d5f5239d16bb5799aa540bd58309ad5 to your computer and use it in GitHub Desktop.
Save mager/9d5f5239d16bb5799aa540bd58309ad5 to your computer and use it in GitHub Desktop.
Inbox contract example
pragma solidity ^0.4.18;
contract Inbox {
string public message;
function Inbox(string initialMessage) public {
message = initialMessage;
}
function setMessage(string newMessage) public {
message = newMessage;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment