Commit 60acb7a
authored
feat: add EIP-712 cheatcodes (#686)
Ref foundry-rs/foundry#10510
Add `eip712HashType`, `eip712HashStruct`, and `eip712HashTypedData`
cheatcodes to VmSafe interface
```solidity
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);
```1 parent ee93fdc commit 60acb7a
2 files changed
+54
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
0 commit comments