Skip to content
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

Merged
merged 9 commits into from
May 17, 2024

Conversation

kroggen
Copy link
Member

@kroggen kroggen commented Sep 28, 2023

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 only bignum.isnegative()

@kroggen kroggen added feature New feature or request V4 To be released on hardfork V4 labels Sep 28, 2023
@kroggen
Copy link
Member Author

kroggen commented Sep 28, 2023

TODO: the tests must be run for all the hardfork versions

@kroggen kroggen changed the base branch from develop to topic/hardfork-v4 October 17, 2023 11:32
@kroggen
Copy link
Member Author

kroggen commented Oct 18, 2023

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

Copy link
Member

@hayarobi hayarobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kroggen kroggen merged commit b766a2f into topic/hardfork-v4 May 17, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request V4 To be released on hardfork V4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants