-
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
fix: allow getAddTransactionRequest to pass through other params #27117
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. |
b896b4b
to
cd3cd38
Compare
…waitForSubmit will not get dropped
fafd0d8
to
09bab84
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #27117 +/- ##
===========================================
+ Coverage 70.04% 70.05% +0.01%
===========================================
Files 1435 1435
Lines 49927 49927
Branches 13981 13981
===========================================
+ Hits 34971 34975 +4
+ Misses 14956 14952 -4 ☔ View full report in Codecov by Sentry. |
Builds ready [09bab84]
Page Load Metrics (1972 ± 106 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
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.
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
Co-authored-by: Derek Brans <dbrans@gmail.com>
Builds ready [3f1749d]
Page Load Metrics (1798 ± 80 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Quality Gate passedIssues Measures |
Builds ready [23f116c]
Page Load Metrics (1979 ± 99 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Updates
getAddTransactionRequest
to pass through additional parameters so thatwaitForSubmit
will get passed through toaddTransaction
.Previously, the
waitForSubmit
param, although passed byaddTransaction
andaddTransactionAndWaitForPublish
, was not included in the object returned bygetAddTransactionRequest
. This doesn't seem to have had negative consequences on a standard wallet, but when using a hardware wallet, it meant thataddTransactionAndWaitForPublish
resolved before waiting for the user to accept or reject the transaction. As a consequence, when doing a swap, the user was taken directly to the "Processing..." screen before they had a chance to take action on the transaction. If they rejected the transaction, they remained on that screen indefinitely.Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MMS-1189
Manual testing steps
Screenshots/Recordings
Before
Video from bug report (shows rejecting swap flow):
noSTX.mov
After
Accepting swap:
IMG_8102.MOV
Rejecting swap:
IMG_8103.MOV
Pre-merge author checklist
Pre-merge reviewer checklist