Skip to content

Commit da74666

Browse files
committed
add references in comments for EIP-712 hash calculation implemented in assembly
1 parent 9e87299 commit da74666

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/abstracts/EIP712.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ abstract contract EIP712 {
4646

4747
digest = _getDomainSeparator();
4848

49+
// reference:
50+
// 1. solady: https://github.com/Vectorized/solady/blob/main/src/utils/EIP712.sol#L138-L147
51+
// 2. 1inch: https://etherscan.io/address/0x111111125421cA6dc452d289314280a0f8842A65#code (line 1204~1209)
4952
// solhint-disable no-inline-assembly
5053
assembly {
5154
// Compute the digest.

0 commit comments

Comments
 (0)