Skip to content

chore(smart-transactions-controller): remove STX migration flags - #9996

Open
rarquevaux wants to merge 1 commit into
mainfrom
chore/remove-migration-flags
Open

chore(smart-transactions-controller): remove STX migration flags#9996
rarquevaux wants to merge 1 commit into
mainfrom
chore/remove-migration-flags

Conversation

@rarquevaux

@rarquevaux rarquevaux commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This is a follow-up on #Incident-Metamask-1820..

The changes are limited to removing the usage of the stxMigration flags that have been broken by a change made in the remote-flags-controller. MetaMask/metamask-extension#45406

A lot more improvements are possible here, most notably add the endpoint to sentinel-api-service but are out of scope of this fix.


Note

Medium Risk
Changes where every STX fee, submit, status, and cancel request goes (sentinel-only, breaking API_BASE_URL export); misconfigured or unsupported chains will error instead of hitting the legacy API.

Overview
Smart transaction HTTP traffic is pinned to the tx-sentinel API instead of toggling between the legacy transaction.api.cx.metamask.io host and sentinel via remote flags.

The controller drops #isStxMigrationFlagEnabled and the stxMigration* remote flags for getFees, submit, cancel, and batchStatus. getAPIRequestURL no longer accepts a useSentinel argument: it always builds /v1/networks/{chainId}/… URLs from SENTINEL_API_BASE_URL_MAP, and throws if the chain is missing from that map (no legacy fallback). The public API_BASE_URL constant is removed, and bearer-token injection in #fetch only applies to sentinel base URLs.

Tests and changelog are updated to match; Jest coverage thresholds are nudged down slightly after removing flag-routing tests.

Reviewed by Cursor Bugbot for commit 9c09c4b. Bugbot is set up for automated code reviews on this repo. Configure here.

@rarquevaux
rarquevaux force-pushed the chore/remove-migration-flags branch 4 times, most recently from ded821d to 3a05617 Compare August 28, 2026 15:57
@rarquevaux
rarquevaux marked this pull request as ready for review August 28, 2026 16:04
@rarquevaux
rarquevaux requested review from a team as code owners August 28, 2026 16:04
@rarquevaux
rarquevaux deployed to default-branch August 28, 2026 16:04 — with GitHub Actions Active
@rarquevaux
rarquevaux force-pushed the chore/remove-migration-flags branch from 3a05617 to 4cf0178 Compare August 28, 2026 16:04
Migration to sentinel-api is complete. Remove `stxMigrationGetFees`,
`stxMigrationSubmitTransactions`, `stxMigrationCancel`, and
`stxMigrationBatchStatus` remote feature flags, the
`#isStxMigrationFlagEnabled` gate, and the `API_BASE_URL` fallback — all
API calls now always route to the sentinel API. `getAPIRequestURL` now
throws for chains not in the sentinel map.
@rarquevaux
rarquevaux force-pushed the chore/remove-migration-flags branch from 4cf0178 to 9c09c4b Compare August 28, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant