Skip to content

Instantly share code, notes, and snippets.

@Adamsimsy
Created October 17, 2019 09:59
Show Gist options
  • Save Adamsimsy/404d184d196f11116b72a274191410c0 to your computer and use it in GitHub Desktop.
Save Adamsimsy/404d184d196f11116b72a274191410c0 to your computer and use it in GitHub Desktop.
Solidity Hello World Contract Example
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