Skip to content

Commit c4316bf

Browse files
committed
feat: calculate PARENT_NODE_NAMEHASH
1 parent e2e00d3 commit c4316bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/contracts/L2Resolver.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ contract L2Resolver is IL2Resolver, IERC165 {
2424
string public constant CHAIN_IDENTIFIER_EIP7930_KEY = 'chain.id.eip7930';
2525

2626
/// @inheritdoc IL2Resolver
27-
bytes32 public constant PARENT_NODE_NAMEHASH = 0xe0266f32655869693dc63423876e5a7367f6e55552b718bdf9c96d0b31f8155d;
27+
bytes32 public constant PARENT_NODE_NAMEHASH =
28+
keccak256(abi.encodePacked(keccak256(abi.encodePacked(bytes32(0), keccak256('eth'))), keccak256('l2')));
2829

2930
/// @notice The hash of the ".l2.eth" suffix.
3031
bytes32 internal constant _L2_ETH_SUFFIX_HASH = keccak256(bytes('.l2.eth'));

0 commit comments

Comments
 (0)