Skip to content

Instantly share code, notes, and snippets.

@rjmacarthy
Created July 13, 2017 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjmacarthy/1937ece1f2d9155f6bbfe4145f0be957 to your computer and use it in GitHub Desktop.
Save rjmacarthy/1937ece1f2d9155f6bbfe4145f0be957 to your computer and use it in GitHub Desktop.
Hello World Ethereum Smart Contract
pragma solidity ^0.4.4;
contract HelloWorld {
address public owner;
string public message;
function HelloWorld() {
owner = msg.sender;
message = 'Hello, world';
}
function setMessage(string _message) {
message = _message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment