Created
January 21, 2019 08:15
-
-
Save Krucamper/714356b944dc351e9aea66e292d3ac2c to your computer and use it in GitHub Desktop.
Create a Hello World Contract in ethereum
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.5.2; | |
contract HelloWorld { | |
string message; | |
function setMessage(string memory newMessage) public { | |
message = newMessage; | |
} | |
function getMessage() public view returns (string memory) | |
{ | |
return message; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment