Last active
May 30, 2018 03:19
-
-
Save YoshihitoAso/b007aa4fa4d012e3388fb42b9a4f2f2b to your computer and use it in GitHub Desktop.
Solidity Sample 1
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.24; | |
contract HelloWorld { | |
string public greeting; | |
constructor(string _greeting) public { | |
greeting = _greeting; | |
} | |
function setGreeting( string _greeting) public { | |
greeting = _greeting; | |
} | |
function say() public constant returns (string) { | |
return greeting; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment