Skip to content

Instantly share code, notes, and snippets.

@maurelian
Created May 30, 2018 10:19
Show Gist options
  • Save maurelian/209ed10e6e6e1ef013d9611b6eede572 to your computer and use it in GitHub Desktop.
Save maurelian/209ed10e6e6e1ef013d9611b6eede572 to your computer and use it in GitHub Desktop.
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