Skip to content

Conversation

@micaelae
Copy link
Member

@micaelae micaelae commented Nov 19, 2025

Description

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Pins @metamask/bridge-controller and @metamask/bridge-status-controller to preview 61.0.0 via resolutions and updates yarn.lock (including peer ranges).

  • Dependencies:
    • Resolutions: Force @metamask/bridge-controller@^60.1.0 and @metamask/bridge-status-controller@^60.1.0 to @metamask-previews/*@61.0.0-preview-f4ab1511 in package.json.
    • Lockfile: Update yarn.lock entries to the preview packages and adjust peer ranges (e.g., @metamask/assets-controllers to ^89.0.0, @metamask/bridge-controller to ^61.0.0).

Written by Cursor Bugbot for commit 84e4f6b. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Metamask Bridge Controller Dependency Mismatch

The @metamask/assets-controllers dependency is pinned to ^88.0.0, but the preview versions of @metamask/bridge-controller and @metamask/bridge-status-controller have a peer dependency requirement of ^89.0.0. This creates a version mismatch that will likely cause runtime errors or unexpected behavior. Update @metamask/assets-controllers to ^89.0.0 to satisfy the peer dependency constraints of the new bridge controller versions.

package.json#L169-L170

"@metamask/keyring-controller/@ethereumjs/tx": "npm:@ethereumjs/tx@5.4.0",
"metro/image-size": "^1.2.1",

Fix in Cursor Fix in Web


github-merge-queue bot pushed a commit to MetaMask/core that referenced this pull request Nov 19, 2025
…itted (#7182)

## Explanation

Publishes the `QuotesReceived` event when submitting a trade before all
quotes load

Extension PR: MetaMask/metamask-extension#37963
Mobilie PR: MetaMask/metamask-mobile#22905

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->

## References

<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?

For example:

* Fixes #12345
* Related to #67890
-->

Fixes https://consensyssoftware.atlassian.net/browse/SWAPS-3427

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Publishes a QuotesReceived event on early trade submission and adds a
helper and types to standardize its payload and warnings.
> 
> - **Bridge Status Controller**:
> - Change `submitTx` to accept optional `isLoading` and `warnings`;
when `isLoading=true`, publish `Unified SwapBridge Quotes Received`
using `getQuotesReceivedProperties` before stopping quote polling.
>   - Allow tracking of `QuotesReceived` in internal tracking helper.
> - **Bridge Controller**:
> - Add and export `getQuotesReceivedProperties` to build QuotesReceived
metrics payload; re-export from `index.ts`.
> - Introduce `QuoteWarning` type and use it for `warnings` across
events/tests; update snapshots to standardized values (e.g.,
`low_return`, `insufficient_balance`).
> - Selector/tests: refine `gasIncluded` vs `gasIncluded_7702` handling
and add scenario where fees come from dest token under 7702.
> - Tests: add BTC fee error handling (return `undefined` fees on
failure) and validate BTC/SOL fee behaviors.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
89bb4b5. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@sonarqubecloud
Copy link

@micaelae micaelae force-pushed the swaps3024-submit-while-loading branch from 84e4f6b to 254cad9 Compare November 19, 2025 00:51
@github-actions github-actions bot added size-S and removed size-XS labels Nov 19, 2025
@github-actions github-actions bot added size-M and removed size-S labels Nov 19, 2025
@github-actions
Copy link
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeCore, SmokeConfirmationsRedesigned, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeTrade, SmokeWalletPlatform, SmokeWalletUX, SmokeAssets, SmokeSwaps, SmokeStake, SmokeCard, SmokeNotifications, SmokeRewards, SmokePerps, SmokeRamps, SmokeMultiChainPermissions, SmokeAnalytics, SmokeMultiChainAPI, SmokePredictions
  • Risk Level: high
  • AI Confidence: %
click to see 🤖 AI reasoning details

Fallback: AI analysis did not complete successfully. Running all tests.

View GitHub Actions results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-M team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants