Last active
July 31, 2018 04:34
-
-
Save jacksonng77/7123d4999d7ca360004d18cbc525a5c6 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.18; | |
contract underscore { | |
uint public a; | |
constructor() public { | |
a = 10; | |
} | |
modifier conditionalChangeAtoThirty() { | |
_; | |
if (a == 20){ | |
a = 30; | |
} | |
} | |
function changeaToTwenty() | |
public | |
conditionalChangeAtoThirty | |
{ | |
a = 20; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment