Skip to content

Instantly share code, notes, and snippets.

@pgebheim
Created November 7, 2018 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgebheim/a9844ff1271d5fc37106d4cb25fd9811 to your computer and use it in GitHub Desktop.
Save pgebheim/a9844ff1271d5fc37106d4cb25fd9811 to your computer and use it in GitHub Desktop.
contract HasAnOwner {
address owner;
function useSuperPowers(){
if (msg.sender != owner) { throw; }
// do something only the owner should be allowed to do
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment