Skip to content

Instantly share code, notes, and snippets.

@SiddharthMalhotra
Last active December 12, 2018 23:47
Show Gist options
  • Save SiddharthMalhotra/c129ebbda446f5891212aaa7d9e9f8dd to your computer and use it in GitHub Desktop.
Save SiddharthMalhotra/c129ebbda446f5891212aaa7d9e9f8dd to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.17;
contract Greeter {
string public greeting;
function Greeter() public {
greeting = 'Hello';
}
function setGreeting(string _greeting) public {
greeting = _greeting;
}
function greet() view public returns (string) {
return greeting;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment