Skip to content

chore: update @metamask/transaction-pay-controller#29302

Merged
jpuri merged 7 commits into
mainfrom
pay_ctrl_update
Apr 24, 2026
Merged

chore: update @metamask/transaction-pay-controller#29302
jpuri merged 7 commits into
mainfrom
pay_ctrl_update

Conversation

@jpuri
Copy link
Copy Markdown
Contributor

@jpuri jpuri commented Apr 24, 2026

Description

Update @metamask/transaction-pay-controller, to add change to accountOverride property.

Changelog

CHANGELOG entry:

Related issues

Ref: https://consensyssoftware.atlassian.net/browse/CONF-1187

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

NA

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

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

Medium Risk
Dependency bumps pull in newer @metamask/* controller and keyring packages, which can subtly change transaction/payment and bridge behavior at runtime. App code changes are minimal, but lockfile/resolution shifts increase integration/regression risk.

Overview
Upgrades @metamask/transaction-pay-controller to ^19.3.0 and updates the lockfile/resolutions to align on newer @metamask/* packages (notably @metamask/keyring-api 23.0.1, plus related bridge/assets/keyring client/internal deps).

Updates accountsControllerTestUtils.ts to recognize Stellar (XlmAccountType.Account -> XlmScope.Pubnet) when generating mock account scopes.

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

@jpuri jpuri added team-confirmations Push issues to confirmations team no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed labels Apr 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

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.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 24, 2026

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 24, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • npm/@metamask/assets-controllers@104.3.0

View full report

@jpuri
Copy link
Copy Markdown
Contributor Author

jpuri commented Apr 24, 2026

@SocketSecurity ignore npm/@metamask/assets-controllers@104.3.0

@jpuri jpuri enabled auto-merge April 24, 2026 04:18
Comment thread package.json
@github-actions github-actions Bot added size-S and removed size-XS labels Apr 24, 2026
@jpuri jpuri requested a review from a team as a code owner April 24, 2026 04:50
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread app/multichain-accounts/discovery.ts Outdated
Comment on lines +31 to +32
// eslint-disable-next-line @typescript-eslint/no-explicit-any
}) as MultichainAccountWallet<any>;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we could use a resolution to align the keyring-api version for all controllers (until we update all other deps) so we avoid doing this kind of type-cast.

Let me try that locally

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indeed, could you instead use resolution:

diff --git a/package.json b/package.json
index 180a943a47..a40b116569 100644
--- a/package.json
+++ b/package.json
@@ -204,7 +204,8 @@
     "@metamask/messenger@^0.3.0": "^1.0.0",
     "@metamask/accounts-controller": "^37.2.0",
     "@metamask/profile-sync-controller": "^28.0.2",
-    "@metamask/transaction-controller@^63.0.0": "^64.2.0"
+    "@metamask/transaction-controller@^63.0.0": "^64.2.0",
+    "@metamask/keyring-api": "^23.0.1"
   },
   "dependencies": {
     "@braze/react-native-sdk": "patch:@braze/react-native-sdk@npm%3A19.1.0#~/.yarn/patches/@braze-react-native-sdk-npm-19.1.0-076-reactmoduleinfo.patch",

We're currently working on updating all clients to update all accounts deps, so we'll remove the resolutions once everything has been updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, I updated the PR.

@jpuri jpuri requested a review from ccharly April 24, 2026 09:00
Copy link
Copy Markdown
Contributor

@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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9704c3e. Configure here.

Comment thread package.json Outdated
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeConfirmations, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeTrade, SmokeWalletPlatform, SmokeCard, SmokePerps, SmokeRamps, SmokeMultiChainAPI, SmokePredictions, SmokeSeedlessOnboarding, SmokeBrowser, FlaskBuildTests
  • Selected Performance tags: @PerformanceAccountList, @PerformanceOnboarding, @PerformanceLogin, @PerformanceSwaps, @PerformanceLaunch, @PerformanceAssetLoading, @PerformancePredict, @PerformancePreps
  • Risk Level: high
  • AI Confidence: 100%
click to see 🤖 AI reasoning details

E2E Test Selection:
Hard rule (controller-version-update): @MetaMask controller package version updated in package.json: @metamask/transaction-controller@^63.0.0, @metamask/transaction-pay-controller. Running all tests.

Performance Test Selection:
Hard rule (controller-version-update): @MetaMask controller package version updated in package.json: @metamask/transaction-controller@^63.0.0, @metamask/transaction-pay-controller. Running all tests.

View GitHub Actions results

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

E2E Fixture Validation — Schema is up to date
12 value mismatches detected (expected — fixture represents an existing user).
View details

Copy link
Copy Markdown
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

LGTM for accounts (not tested)

Comment thread package.json
Comment on lines +208 to +213
"@metamask/keyring-api@npm:^21.3.0": "21.6.0",
"@metamask/keyring-api@npm:^21.4.0": "21.6.0",
"@metamask/keyring-api@npm:^21.5.0": "21.6.0",
"@metamask/keyring-api@npm:^21.6.0": "23.0.1",
"@metamask/keyring-api@npm:^22.0.0": "23.0.1",
"@metamask/keyring-api@npm:^23.0.1": "23.0.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For tracking purposes: This is expected and we're going to re-align all accounts deps very soon!

@jpuri jpuri added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit 73a4e87 Apr 24, 2026
116 checks passed
@jpuri jpuri deleted the pay_ctrl_update branch April 24, 2026 10:58
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.76.0 Issue or pull request that will be included in release 7.76.0 label Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed release-7.76.0 Issue or pull request that will be included in release 7.76.0 size-S team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants