Skip to content

Instantly share code, notes, and snippets.

@schadokar
Created April 11, 2019 08:17
Show Gist options
  • Save schadokar/339824556db3c6f53d3172ab227cac0b to your computer and use it in GitHub Desktop.
Save schadokar/339824556db3c6f53d3172ab227cac0b to your computer and use it in GitHub Desktop.
Message Smart Contract
pragma solidity ^0.4.25;
contract Message {
string public message;
constructor(string memory _message) public {
message = _message;
}
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