Skip to content

fix(cli-sdk): route sign-typed-data requests to correct chain#36

Merged
arein merged 1 commit into
mainfrom
fix/sign-typed-data-chain-routing
Mar 9, 2026
Merged

fix(cli-sdk): route sign-typed-data requests to correct chain#36
arein merged 1 commit into
mainfrom
fix/sign-typed-data-chain-routing

Conversation

@arein
Copy link
Copy Markdown
Contributor

@arein arein commented Mar 9, 2026

cmdSignTypedData was always sending eth_signTypedData_v4 requests on eip155:1 (the first account) regardless of the typed data's actual chainId. Wallets like Zerion would ignore or expire requests sent on the wrong chain, causing silent failures.

Now extracts chainId from the typed data domain and finds the matching account (e.g. eip155:137 for Polygon) before sending the request.

cmdSignTypedData was always sending eth_signTypedData_v4 requests on
eip155:1 (the first account) regardless of the typed data's actual
chainId. Wallets like Zerion would ignore or expire requests sent on
the wrong chain, causing silent failures.

Now extracts chainId from the typed data domain and finds the matching
account (e.g. eip155:137 for Polygon) before sending the request.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arein arein merged commit 067b2bf into main Mar 9, 2026
4 checks passed
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