feat(STX-356): add logic for gasless bridge with EIP-7702#40354
Merged
rarquevaux merged 2 commits intomainfrom Feb 25, 2026
Merged
feat(STX-356): add logic for gasless bridge with EIP-7702#40354rarquevaux merged 2 commits intomainfrom
rarquevaux merged 2 commits intomainfrom
Conversation
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. |
Contributor
✨ Files requiring CODEOWNER review ✨🔄 @MetaMask/swaps-engineers (2 files, +104 -17)
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
b9cdffb to
84ffd3b
Compare
Contributor
Builds ready [84ffd3b]
⚡ Performance Benchmarks (1382 ± 92 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
micaelae
reviewed
Feb 24, 2026
micaelae
reviewed
Feb 24, 2026
70435e8 to
d1966de
Compare
Contributor
Builds ready [d1966de]
⚡ Performance Benchmarks (1410 ± 103 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
micaelae
previously approved these changes
Feb 24, 2026
ghgoodreau
previously approved these changes
Feb 25, 2026
d1966de to
b53ff5d
Compare
nthpool
previously approved these changes
Feb 25, 2026
b53ff5d to
cd24d44
Compare
cd24d44 to
a5b87c4
Compare
|
Contributor
Builds ready [a5b87c4]
⚡ Performance Benchmarks (1374 ± 93 ms)
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs
|
nthpool
approved these changes
Feb 25, 2026
micaelae
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR adds the logic to enable gasless bridge with EIP-7702. The networks where this will be enabled are controlled via a smart transaction team feature flag defined in the remote config API.
Description
Changelog
CHANGELOG entry: add gasless bridge with EIP-7702
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes feature-gating logic for when gasless relay support checks run during bridging, which can affect transaction routing/UX across chains; mitigated by added unit test coverage and being controlled by remote feature flags.
Overview
Adds a new Smart Transactions selector,
getGaslessBridgeWith7702EnabledForChain, exposing a remote-config-driven feature flag to control where gasless bridge with EIP-7702 is enabled.Updates
useGasIncluded7702so gasless 7702 support checks can run for non-swap bridge flows only when this new flag is enabled (while still skipping when send-bundle+STX is active), and switches STX detection to use the bridge selectorgetIsStxEnabled. Tests are expanded to cover the new gating behavior, non-EVM chain IDs, and decimal-to-hex chainId conversion for relay support checks.Bumps
@metamask/smart-transactions-controllerto^22.6.0(lockfile updated).Written by Cursor Bugbot for commit a5b87c4. This will update automatically on new commits. Configure here.