Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kingcocomango/a1cecb7a081d1d05eed6566673fdf430 to your computer and use it in GitHub Desktop.
Save kingcocomango/a1cecb7a081d1d05eed6566673fdf430 to your computer and use it in GitHub Desktop.
/// @title Provides an "owner" concept of the contract creator.
pragma solidity ^0.4.8;
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owner) {
throw;
}
_;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment