Skip to content

Add new method to TransactionController to determine whether EIP-7702 is supported for specified chains#7948

Open
jeffsmale90 wants to merge 3 commits intomainfrom
feat/is-eip-7702-supported
Open

Add new method to TransactionController to determine whether EIP-7702 is supported for specified chains#7948
jeffsmale90 wants to merge 3 commits intomainfrom
feat/is-eip-7702-supported

Conversation

@jeffsmale90
Copy link
Contributor

@jeffsmale90 jeffsmale90 commented Feb 17, 2026

Explanation

The TransactionController exposes a method isAtomicBatchSupported that determines whether a specified address is upgraded via EIP-7702 for specified chains.

This method adds isEIP7702Supported to determine whether specified chainIds support EIP-7702. This information can be inferred from the result of isAtomicBatchSupported, but that method is unnecessarily broad for this purpose.

References

This is required for MetaMask/metamask-extension#40152.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Adds a new read-only helper method and types with isolated logic and extensive tests; no transaction signing/sending behavior changes.

Overview
Adds a new TransactionController.isEIP7702Supported API that reports whether specified chainIds support EIP-7702 (or returns all supported chains when chainIds is omitted), using the confirmations_eip_7702.supportedChains feature flag and performing case-insensitive chain ID matching.

Exports new request/response types (IsEIP7702SupportedRequest/IsEIP7702SupportedResult), adds comprehensive unit tests for supported/unsupported/mixed/empty inputs, and documents the addition in the package changelog.

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

@jeffsmale90 jeffsmale90 requested a review from a team as a code owner February 17, 2026 03:34
@jeffsmale90 jeffsmale90 force-pushed the feat/is-eip-7702-supported branch from ff9101e to 6a51335 Compare February 17, 2026 03:51
@jeffsmale90 jeffsmale90 requested a review from a team as a code owner February 17, 2026 04:00
@jeffsmale90 jeffsmale90 force-pushed the feat/is-eip-7702-supported branch from 3910cac to 02d0ddc Compare February 17, 2026 04:12
@jeffsmale90 jeffsmale90 force-pushed the feat/is-eip-7702-supported branch from 02d0ddc to 0af0fee Compare February 17, 2026 20:10
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