Created
July 13, 2017 13:02
-
-
Save rjmacarthy/1937ece1f2d9155f6bbfe4145f0be957 to your computer and use it in GitHub Desktop.
Hello World Ethereum Smart Contract
This file contains hidden or 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.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