Update MerkleProof.sol (#1997)

This commit is contained in:
William Entriken
2019-11-19 18:13:22 -05:00
committed by Nicolás Venturo
parent 8e980480aa
commit 95e54173e9

View File

@ -16,7 +16,7 @@ library MerkleProof {
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash < proofElement) {
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {