Skip to content

fix: relay network fee on EIP-7702 deposits#7323

Merged
matthewwalsh0 merged 4 commits intomainfrom
fix/relay-network-fee-7702
Dec 5, 2025
Merged

fix: relay network fee on EIP-7702 deposits#7323
matthewwalsh0 merged 4 commits intomainfrom
fix/relay-network-fee-7702

Conversation

@matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Dec 5, 2025

Explanation

Ensure the displayed network fee for batch Relay deposits on EIP-7702 networks is correct by passing the Relay gas fee properties to the new transaction.

References

Related to #6394

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

Propagates gas fee fields into EIP-7702 batch transactions and passes per-step gas fees in Relay batch submits, fixing source network fee computation/display for EIP-7702 deposits.

  • Transaction Controller
    • EIP-7702 batch txParams now include maxFeePerGas and maxPriorityFeePerGas from the first nested transaction (src/utils/batch.ts).
    • Tests added to assert gas fee propagation in batch transactions.
  • Transaction Pay (Relay)
    • Batch submit now forwards maxFeePerGas/maxPriorityFeePerGas for each step when calling addTransactionBatch (relay-submit.ts), with tests updated accordingly.
    • Fix source network fees for batch Relay deposits on EIP-7702 networks; minor logging added for total gas limits (relay-quotes.ts).

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

@matthewwalsh0 matthewwalsh0 force-pushed the fix/relay-network-fee-7702 branch from 44800cb to fcfc3b7 Compare December 5, 2025 11:01
@matthewwalsh0 matthewwalsh0 marked this pull request as ready for review December 5, 2025 11:01
@matthewwalsh0 matthewwalsh0 requested review from a team as code owners December 5, 2025 11:01
@matthewwalsh0 matthewwalsh0 added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit bbc45d7 Dec 5, 2025
281 checks passed
@matthewwalsh0 matthewwalsh0 deleted the fix/relay-network-fee-7702 branch December 5, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants