Skip to content

Support EIP-712 cheatcodes in Solidity Test #8171

@kanej

Description

@kanej

Currently the EIP-712 cheatcodes are not supported in Hardhat Solidity Test. We should explore adding targeted support for:

#[cheatcode(group = Utilities)]
function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash);

#[cheatcode(group = Utilities)]
function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash);

#[cheatcode(group = Utilities)]
function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest);

Metadata

Metadata

Labels

No fields configured for Feature.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions