Created
April 11, 2019 08:17
-
-
Save schadokar/339824556db3c6f53d3172ab227cac0b to your computer and use it in GitHub Desktop.
Message Smart Contract
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.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