Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
  • Loading branch information
Amxx and frangio committed Oct 13, 2021
1 parent 272c3ba commit 40ae7cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/utils/cryptography/MerkleProof.sol
Expand Up @@ -30,12 +30,12 @@ library MerkleProof {

/**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`, and an index uniquelly identifying the leaf
* from `leaf` using `proof`, and an index uniquely identifying the leaf
* location in the tree. A `proof` is valid if and only if the rebuilt hash
* matches the root of the tree. When processing the proof, the pairs of
* leafs & pre-images are assumed to be sorted.
* The produced index is unique in the sens that processing two valid proofs
* will return the same indices if and only if the leaf at the same location
* The produced index is unique in the sense that processing two valid proofs
* will return the same indices if and only if the leaf is at the same location
* in the tree. This helps distinguishing two leaves that have the same
* bytes32 identifier but are present in different locations in the merkle
* tree.
Expand Down

0 comments on commit 40ae7cc

Please sign in to comment.