Created
November 15, 2018 16:52
-
-
Save m-yahya/31743c02d0a022fb15c9484683fcb33a 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.22; | |
contract SimpleContract { | |
string public name; | |
constructor() { | |
name = 'my name'; | |
} | |
function getName() public view returns (string) { | |
return (name); | |
} | |
function changeName(string _name) public { | |
name = _name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment