fix(CHAIN-4779): force sponsored gas mode for session-key sends - #24
Merged
Conversation
CHAIN-4779 Session-key USDV send can enter unsupported gas mode and fail
Using a P-256 session key to send USDV can fail during gas estimation with The transaction composer currently allows a session-key signer to select a pay-gas option even though the flow should require a sponsored transaction. Observed reverted transaction: Base explorer tx |
Collaborator
✅ Heimdall Review Status
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Session-key signers only support the EIP-8168 sponsored ("free") gas
path; leaving gasMode on eth/usdv while a session key is selected let
USDV (and other) sends reach estimation/submission and revert.
- Force gasMode to 'free' via useEffect as soon as txIsSession is true.
- Hide the ETH / USDV gas options in the Gas Select for session-key
signers, leaving only Sponsored.
- Add a hard guard in doSignNative/doSponsoredSign that blocks and
surfaces an error if a session-key signer is paired with a
non-sponsored gas mode, as defense in depth against the UI state.
Co-authored-by: Cursor <cursoragent@cursor.com>
montycheese
force-pushed
the
fix/chain-4779-session-key-gas-mode
branch
from
July 24, 2026 16:07
5496222 to
0bd8c7a
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
free) and hide unsupported Pay in ETH / Pay in USDV options.Fixes CHAIN-4779
Test plan
Made with Cursor