-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: cp-7.41.0 Temporarily revert gas included swaps #13639
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. |
|
a99b1a3
to
aa73a46
Compare
aa73a46
to
1861de0
Compare
1861de0
to
30b922a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13639 +/- ##
=======================================
Coverage 62.72% 62.72%
=======================================
Files 2025 2025
Lines 44474 44431 -43
Branches 6044 6041 -3
=======================================
- Hits 27897 27871 -26
+ Misses 14736 14719 -17
Partials 1841 1841 ☔ View full report in Codecov by Sentry. |
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.
revert of changes from #13430, checked against that PR and everything looks good.
30b922a
to
692305a
Compare
|
Description
Reverts #13430 for now.
We initially believed that resolving the known issue with gas-included swaps requiring token approval would be easy and could be completed before the release candidate for version 7.41.0 was pushed to production, but it turns out that more fundamental changes are needed. Specifically, submitBatch support from the TransactionController—allowing the simultaneous submission of multiple transactions (approval and swap)—is required. This submitBatch support will likely also be used for current swaps that need token approval to increase success rates.
EDIT: there is an alternative short-term solution that the Swaps team is working on to fix approval + swap on mobile. Once that one is merged, this code should work.
Related issues
Fixes: #13584
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist