Created
September 22, 2020 15:41
-
-
Save KardanovIR/40f9b0fabb5eeb8bf98bb615525cae02 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
modifier myModifier() { | |
//do something before the function calls | |
runningFunction = true; | |
_; | |
//do something after the function calls | |
runningFunction = false; | |
} | |
function coolFunction() public payable myModifier() { | |
// function body here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment