Commit 95e54173 by William Entriken Committed by Nicolás Venturo

Update MerkleProof.sol (#1997)

parent 8e980480
...@@ -16,7 +16,7 @@ library MerkleProof { ...@@ -16,7 +16,7 @@ library MerkleProof {
for (uint256 i = 0; i < proof.length; i++) { for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i]; bytes32 proofElement = proof[i];
if (computedHash < proofElement) { if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof) // Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment