Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

fix(signer): sign extend EIP-712 int values#1158

Merged
gemcoder21 merged 1 commit into
mainfrom
eip712-intN-fix
May 26, 2026
Merged

fix(signer): sign extend EIP-712 int values#1158
gemcoder21 merged 1 commit into
mainfrom
eip712-intN-fix

Conversation

@0xh3rman
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the adjust_signed_value function in crates/signer/src/eip712/parse.rs by directly returning the raw representation of the signed integer after performing range checks, removing redundant conditional logic. It also adds unit tests for this function and updates an expected test digest in crates/signer/src/eip712/mod.rs. No review comments were provided, so there is no feedback to address.

@gemcoder21 gemcoder21 merged commit b5e889a into main May 26, 2026
4 checks passed
@gemcoder21 gemcoder21 deleted the eip712-intN-fix branch May 26, 2026 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants