Skip to content

Instantly share code, notes, and snippets.

@readevalprint
Created July 25, 2017 20:57
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 readevalprint/1c4a01c8ae1c8d1a99cabd81425016dc to your computer and use it in GitHub Desktop.
Save readevalprint/1c4a01c8ae1c8d1a99cabd81425016dc to your computer and use it in GitHub Desktop.
pragma solidity 0.4.11;
contract Foo {
event Debug(string msg);
modifier checkThis(string action) {
Debug(action);
_;
}
function checkOnce() checkThis('once') {
}
function checkTwice() checkThis('first') checkThis('second') {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment