-
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
Fix gas estimate for tokens #7753
Conversation
ui/app/pages/send/send-content/send-amount-row/send-amount-row.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/send/send-content/send-amount-row/send-amount-row.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js
Outdated
Show resolved
Hide resolved
eb99c5c
to
7be74b1
Compare
…n blur after change
643239f
to
f6f3d65
Compare
f6f3d65
to
0237426
Compare
Builds ready [0237426]
|
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.
I've fixed the test failures. This should be good to merge now
* Make gas estimate update on debounced token amount change, not just on blur after change * Updated tests * Ensure `updateGas` is bound early Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Make gas estimate update on debounced token amount change, not just on blur after change * Updated tests * Ensure `updateGas` is bound early Co-authored-by: Mark Stacey <markjstacey@gmail.com>
As of #7753, the `onBlur` prop is no longer used for the `token-input` and `currency-input` components, and the associated wrapper components and the shared underlying component. It as been removed from all of them.
* Make gas estimate update on debounced token amount change, not just on blur after change * Updated tests * Ensure `updateGas` is bound early Co-authored-by: Mark Stacey <markjstacey@gmail.com>
As of #7753, the `onBlur` prop is no longer used for the `token-input` and `currency-input` components, and the associated wrapper components and the shared underlying component. It as been removed from all of them.
I think this is still a problem with v7.7.2. I don't want to link my name here with my address/txs, but I just had some transactions that tried to transfer some tokens revert. I manually increased the gas limit and they succeeded. |
I've had this same issue just occur. 2 DAI transfers failing with gas limits of 43k and 50k which finally went through once the gas limit was raised to 70k (although ironically only 37k of gas was used) |
Thanks for the feedback @wysenynja and @TomAFrench ; would either of you be willing to create a separate issue to track the problem you've encountered? Any more details about browser version, MetaMask version, and circumstances of the event would be greatly appreciated as well. I suspect it's a distinct problem, unrelated to the changes in this PR, that just happens to have a similar symptom. |
fixes #7709
This PR fixes an outstanding issue with the send token screen. When advanced gas inputs were showing and token amounts where change, the newly estimated gas value would not be the submitted gas value if there was no blur event before clicking "Submit".
This PR ensures that the gas value is updated on a debounced change of the amount field so that the correct estimate is submitted.