From 95e54173e9473fbee19bd173c751febad7062fc9 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Tue, 19 Nov 2019 18:13:22 -0500 Subject: [PATCH] Update MerkleProof.sol (#1997) --- contracts/cryptography/MerkleProof.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/cryptography/MerkleProof.sol b/contracts/cryptography/MerkleProof.sol index 83a861546..c84805905 100644 --- a/contracts/cryptography/MerkleProof.sol +++ b/contracts/cryptography/MerkleProof.sol @@ -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 {