Created
August 6, 2018 07:02
-
-
Save liushooter/fec0f44c8897fb4a70c1e8ece2310771 to your computer and use it in GitHub Desktop.
智能合约
This file contains hidden or 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 isHuman() { | |
| address _addr = msg.sender; | |
| uint256 _codeLength; | |
| assembly {_codeLength := extcodesize(_addr)} | |
| require(_codeLength == 0, "sorry humans only"); | |
| _; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment