Created
October 17, 2019 09:59
-
-
Save Adamsimsy/404d184d196f11116b72a274191410c0 to your computer and use it in GitHub Desktop.
Solidity Hello World Contract Example
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.5.11'; | |
contract HelloWorldContract { | |
string private message; | |
constructor () public { | |
message = "Hello world!"; | |
} | |
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