Last active
December 12, 2018 23:47
-
-
Save SiddharthMalhotra/c129ebbda446f5891212aaa7d9e9f8dd to your computer and use it in GitHub Desktop.
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.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