Skip to content

Instantly share code, notes, and snippets.

@marsrvr
Created December 23, 2019 02:30
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 marsrvr/636ac94f2fa839f4f1a0118fe8e379af to your computer and use it in GitHub Desktop.
Save marsrvr/636ac94f2fa839f4f1a0118fe8e379af to your computer and use it in GitHub Desktop.
Hello World in Solidity
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