Created
July 24, 2018 15:21
-
-
Save fiksn/b63f8eece1f0259845c1747b831d1ba7 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.20; | |
contract LatestName { | |
string name = "Gregor"; | |
function setName(string newName) public { | |
name = newName; | |
} | |
function getName() public view returns (string) { | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment