Created
July 25, 2017 20:57
-
-
Save readevalprint/1c4a01c8ae1c8d1a99cabd81425016dc to your computer and use it in GitHub Desktop.
This file contains 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.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