Skip to content

feat(wallet): add injectable fetch and prevClientVersion options#8879

Draft
grypez wants to merge 1 commit into
grypez/wallet-controllersfrom
grypez/wallet-injectable-options
Draft

feat(wallet): add injectable fetch and prevClientVersion options#8879
grypez wants to merge 1 commit into
grypez/wallet-controllersfrom
grypez/wallet-injectable-options

Conversation

@grypez
Copy link
Copy Markdown

@grypez grypez commented May 21, 2026

Summary

Part of a stack on top of #8853.

  • Adds optional fetch field to WalletOptions — overrides the fetch implementation used by NetworkController's RPC service. Defaults to globalThis.fetch. Allows platform-specific fetch implementations (e.g. React Native) to be injected without subclassing.
  • Adds optional prevClientVersion field to WalletOptions — passed to RemoteFeatureFlagController to trigger feature-flag cache invalidation when the client version changes between sessions.

Closes #8793, #8794

Test plan

  • yarn workspace @metamask/wallet run test passes
  • yarn constraints passes
  • yarn validate:changelog passes

🤖 Generated with Claude Code

- fetch: overrides the fetch implementation used by NetworkController's
  RPC service; defaults to globalThis.fetch. Allows platform-specific
  implementations (e.g. React Native) to be injected.
- prevClientVersion: passed to RemoteFeatureFlagController to trigger
  feature-flag cache invalidation when the client version changes.

Closes #8793, #8794

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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