Created
January 22, 2019 09:29
-
-
Save Krucamper/cb2df4174dac0ef80a390776a0bbe448 to your computer and use it in GitHub Desktop.
Create a Hello World Contract in ethereum Basic
This file contains hidden or 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.5.2; | |
contract HelloWorld { | |
string public message; | |
constructor(string memory initMessage) public payable { | |
message = initMessage; | |
} | |
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