Skip to content

SNIP-12 u256 hash mismatch #1464

@JoE11-y

Description

@JoE11-y

Describe the bug
Currently the struct hash of typed data containing u256 doesn't match the hash struct of u256 calculated with in cairo, causing a mismatch of message signature

To Reproduce
link to gist - https://gist.github.com/JoE11-y/19b8a02c29e2f6e029f3d3fb5945add3

Expected behavior
Should match

Screenshots
Screenshot from 2025-08-01 14-24-01

Desktop (please complete the following information):

  • Browser & version [e.g. chrome, safari, webworker]
  • Node version [e.g. 16.0.1]: 22
  • Starknet.js version: 7.6.4
  • Scarb version: 2.11.4
  • Network [devnet, testnet]: devnet

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions