-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Use hexToDecimal to parse gasLimit in send footer #10969
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I have read the CLA Document and I hereby sign the CLA |
@JackAldridge thanks for the contribution. Would you be interested in testing your findings with the work done in #10965 ? Regardless i'd love to get your work landed ahead of that change as I definitely encountered this problem during said refactor and you should get your 'contributor' tag :D |
Go ahead and rebase on develop and push those changes up so we can get a build going. |
- Fixes issue #10919
Okay just rebased, and yep I can take a look at that refactor later today |
@brad-decker just got round to looking at that other PR and can confirm it fixes all the issues I looked at. Unless it's urgent maybe we should just wait for that one to land? Getting unit test failures here and not familiar enough with the test suite to tell if it's actually related to these changes. |
The unit tests are failing legitimately due to our tests using "mockGasLimit" 😬 it's entirely up to you. I can jump in here tomorrow and clean up those tests and get your commit landed ahead of my changes. I'm also okay if you want to close this. In any event thanks for taking a look at the refactor! Appreciate all the eyes I can get on it 😊 |
Cool, I'm going to close this one then. Thanks for taking a look |
Fixes: #10919
Explanation:
The
gasLimit
is being represented as an unprefixed hexadecimal string every render after the first. This means the comparison to5208
is just comparing toNaN
in a lot of cases which are incidentally passing.In the issue 300000 and 300001 are flagged as numbers that fail when they should not, but there are also quite a few that pass when they shouldn't too, like 1000.
To fix,
gasLimit
is now parsed to a decimal and compared to21000
.Manual testing steps:
develop
branch, send a transaction with the advanced gas controls