Skip to content

Commit

Permalink
Small fix for MerkleUtils (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts authored Nov 24, 2020
1 parent a4fae7c commit 6f4f7ea
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ library Lib_MerkleUtils {

defaultHashes[0] = keccak256(abi.encodePacked(uint256(0)));
for (uint256 i = 1; i < defaultHashes.length; i++) {
defaultHashes[i] = keccak256(abi.encodePacked(defaultHashes[i-1]));
defaultHashes[i] = keccak256(abi.encodePacked(
defaultHashes[i-1],
defaultHashes[i-1]
));
}

return defaultHashes;
Expand Down

0 comments on commit 6f4f7ea

Please sign in to comment.