Skip to content

Conversation

yash-atreya
Copy link
Member

@yash-atreya yash-atreya commented Jun 11, 2025

Ref foundry-rs/foundry#10510

Add eip712HashType, eip712HashStruct, and eip712HashTypedData cheatcodes to VmSafe interface

function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash);
function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash);
function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash);
function eip712HashStruct(string calldata bindingsPath, string calldata typeName, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash);
function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest);

@yash-atreya yash-atreya enabled auto-merge (squash) June 11, 2025 09:32
@zerosnacks zerosnacks self-requested a review June 11, 2025 09:37
@yash-atreya yash-atreya merged commit 60acb7a into foundry-rs:master Jun 11, 2025
3 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.

2 participants