Skip to content

Instantly share code, notes, and snippets.

@alexroan
Last active March 17, 2020 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexroan/eebedb9328d060448d56995e9f56c032 to your computer and use it in GitHub Desktop.
Save alexroan/eebedb9328d060448d56995e9f56c032 to your computer and use it in GitHub Desktop.
truffle-smart-contract/HelloWorld.sol/0.0.3
pragma solidity >=0.5.0;
contract HelloWorld {
string private greeting;
constructor() public {
greeting = "Hello World";
}
function getGreeting() public view returns(string memory){
return greeting;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment