Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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') {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement