Last active
November 9, 2017 07:04
-
-
Save markya0616/e8c5ccdaa8e5af616a4858a62463fe87 to your computer and use it in GitHub Desktop.
NameService Contracts
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.15; | |
contract NameService { | |
string name; | |
event NameSet(string _name); | |
function setName(string _name) { | |
name = _name; | |
NameSet(name); | |
} | |
function getName() constant returns (string) { | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment