Skip to content

Instantly share code, notes, and snippets.

@akegaviar
Last active September 29, 2020 07:54
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 akegaviar/7ae72e1d359349960efa067a141f5bfc to your computer and use it in GitHub Desktop.
Save akegaviar/7ae72e1d359349960efa067a141f5bfc to your computer and use it in GitHub Desktop.
pragma solidity ^0.6.1;
contract helloBlock {
string message;
constructor() public {
message = "Hello, Block! In Solidity!";
}
function printMessage() public view returns (string memory) {
return message;
}
function setMessage(string memory _message) public {
message = _message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment