Skip to content

Instantly share code, notes, and snippets.

@markya0616
Last active November 9, 2017 07:04
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 markya0616/e8c5ccdaa8e5af616a4858a62463fe87 to your computer and use it in GitHub Desktop.
Save markya0616/e8c5ccdaa8e5af616a4858a62463fe87 to your computer and use it in GitHub Desktop.
NameService Contracts
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