Last active
March 6, 2019 22:10
-
-
Save pi0neerpat/4506962cdb4bf244f732c1376a919e89 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.24; | |
| import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; | |
| contract Name is Ownable{ | |
| string public name; | |
| constructor(string _name) public { | |
| name = _name; | |
| } | |
| function setName(string _name) onlyOwner public returns (bool){ | |
| name = _name; | |
| return true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment