Skip to content

Instantly share code, notes, and snippets.

@pi0neerpat
Last active March 6, 2019 22:10
Show Gist options
  • Select an option

  • Save pi0neerpat/4506962cdb4bf244f732c1376a919e89 to your computer and use it in GitHub Desktop.

Select an option

Save pi0neerpat/4506962cdb4bf244f732c1376a919e89 to your computer and use it in GitHub Desktop.
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