-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Number Overflow Issue #3976
Number Overflow Issue #3976
Conversation
Your Render PR Server URL is https://web3-js-pr-3976.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c1ei0drjbvm4aeg36750. |
Currently, no errors are being seen anywhere other than the process of formatting the gas value. I think it's too radical a change. |
@alstjd0921 Thank you for commenting/reviewing the code, this was actually a point of discussion I wanted to have: I've tested your #3948 against the test repo I made, and it does pass using your branch, so presumably it fixes all the mentioned issues. However, even though changing one field is more desirable that forcing users to update multiple fields, I want to avoid having to make another breaking change in the future where some field related to gas overflows. So, I would like to keep any updates I've made to fields pertaining to gas, but revert other changes like To be specific, the fields I want to remain returning number strings are: How do you (and anyone else reading this) feel about this? P.s. in the rewrite we've started, we will be using the native BigInt, so this won't be a problem going forward |
|
@spacesailor24 As you said, it seems desirable to limit the problem to gas-related things. |
036bfc6
to
5e56b86
Compare
@alstjd0921 if you want to merge this, then we could merge your #3948 |
…o wyatt/overflow-fix
Pull Request Test Coverage Report for Build 706496265
💛 - Coveralls |
@spacesailor24 |
@alstjd0921 Thought I fixed all the tests, but missed the CI ones. I'm going to work on getting those fixed today |
Am now just realizing that the failing tests are a result of pulling the ganache-core repo and running their tests, so I'm trying to figure out what to do about that because of the breaking change |
So the plan will be to merge this, branch off |
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.
Wool woop
The was merged with failing |
Am I correct that the actual For example, this check with triple equals will not be impacted? : |
Updates the use of
hexToNumber
tooutputBigNumberFormatter
(which returns a number string instead of a number)This currently doesn't update other potentially problematic places such as here and here
Fixes #3745, #3912, #3829, and #3936
Supersedes #3789 and #3948
Notes
3.x