-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bignum.ispositive() + bignum.isnegative() #269
Conversation
TODO: the tests must be run for all the hardfork versions |
PROBLEM: it is giving difference in gas on V4 when new functions are added to the module If we comment the lines that add the new functions, it gives the expected value. When we uncomment the lines (and the functions are added) it gives another amount of gas The result can be seen here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR adds 2 new functions:
bignum.ispositive()
bignum.isnegative()
The last one is a clone of the
bignum.isneg()
. Both will exist (for backwards compatibility) but the docs and code completion on the web editor will mention onlybignum.isnegative()