-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 is not re-calculated when updating a transaction #5876
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. |
23c13de
to
7d07228
Compare
569caca
to
1d2adb6
Compare
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.
Good work 👍
cc9f732
to
97b94e6
Compare
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
PR looks good @blackdevelopa 💯 I've checked switching from ERC20 to ETH and the other way around as well as with ERC721 tokens and they all work fine. A small thing I've noticed is that the button Send is enabled before the gas has updated, but this can be handled in the future, whenever the loading states are consolidated. cc @bschorchit The PR can be merged, just requires to fix some conflicts with a test file. mobile-gas-update-tx.mp4 |
a6eaef4
to
c81e74b
Compare
Re-tested again and looks good. I think we can merge it since last changes were due to conflict on a snapshot test |
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
There is a problem with gas calculation when we switch from one type of Send to another (Send ETH/ Send ERC20 / Send NFT). The transaction object retains the previous gas value before attempting to estimate the new gas value. This bug results in non-desired behaviours for both cases.
Screenshots/Recordings
Before
https://recordit.co/oGbCf2W6iy
After
http://recordit.co/xOnFZ3DyQy
Issue
Progresses #5865
Checklist