Skip to content

Instantly share code, notes, and snippets.

@YoshihitoAso
Last active May 30, 2018 03:19
Show Gist options
  • Save YoshihitoAso/b007aa4fa4d012e3388fb42b9a4f2f2b to your computer and use it in GitHub Desktop.
Save YoshihitoAso/b007aa4fa4d012e3388fb42b9a4f2f2b to your computer and use it in GitHub Desktop.
Solidity Sample 1
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