Created
May 30, 2018 10:19
-
-
Save maurelian/209ed10e6e6e1ef013d9611b6eede572 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
Yup: event({_yup: bool}) | |
max_uint_256: public(uint256) | |
@public | |
def __init__(): | |
self.max_uint_256 = 2*(2**255-1)+1 | |
@public | |
def lessThanMaxUint(a: uint256) -> (bool): | |
return a < self.max_uint_256 | |
@public | |
def notEqualToMaxUint(a: uint256) -> (bool): | |
return a != self.max_uint_256 | |
@public | |
def foo(a: uint256): | |
if a < self.max_uint_256: | |
log.Yup(True) # does not log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment