Skip to content

Commit 1e398db

Browse files
nadir-akhtarypatil12
authored andcommitted
fix(docs): correct hash value in natspec (#1587)
<!-- 🚨 ATTENTION! 🚨 This PR template is REQUIRED. PRs not following this format will be closed without review. Requirements: - PR title must follow commit conventions: https://www.conventionalcommits.org/en/v1.0.0/ - Label your PR with the correct type (e.g., 🐛 Bug, ✨ Enhancement, 🧪 Test, etc.) - Provide clear and specific details in each section --> **Motivation:** Small typo in natspec regarding hash value. The value in the code is correct, but the docs are not. **Modifications:** * Fixed value in documentation for how salts were derived **Result:** More accurate docs
1 parent ee8a74a commit 1e398db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contracts/mixins/LeafCalculatorMixin.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract contract LeafCalculatorMixin {
1717
/// validate a proof. The salt ensures that leaves cannot be concatenated together to
1818
/// form a valid proof, as well as reducing the likelihood of an internal node matching
1919
/// the salt prefix.
20-
/// @dev Value derived from keccak256("OPERATOR_INFO_LEAF_SALT") = 0x38...
20+
/// @dev Value derived from keccak256("OPERATOR_INFO_LEAF_SALT") = 0x75...
2121
/// This ensures collision resistance and semantic meaning.
2222
uint8 public constant OPERATOR_INFO_LEAF_SALT = 0x75;
2323

@@ -27,7 +27,7 @@ abstract contract LeafCalculatorMixin {
2727
/// validate a proof. The salt ensures that leaves cannot be concatenated together to
2828
/// form a valid proof, as well as reducing the likelihood of an internal node matching
2929
/// the salt prefix.
30-
/// @dev Value derived from keccak256("OPERATOR_TABLE_LEAF_SALT") = 0x7d...
30+
/// @dev Value derived from keccak256("OPERATOR_TABLE_LEAF_SALT") = 0x8e...
3131
/// This ensures collision resistance and semantic meaning.
3232
uint8 public constant OPERATOR_TABLE_LEAF_SALT = 0x8e;
3333

0 commit comments

Comments
 (0)