Created
December 23, 2019 02:30
-
-
Save marsrvr/636ac94f2fa839f4f1a0118fe8e379af to your computer and use it in GitHub Desktop.
Hello World in Solidity
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.12; | |
contract HelloWorld{ | |
string public message = "Hello World."; | |
function getMessage() public view returns (string memory) { | |
return message; | |
} | |
function setMessage(string memory newMessage) public { | |
message = newMessage; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment