mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
refactor(incremental-merkle-tree.sol): remove unnecessary bitwise and operator
re #37
This commit is contained in:
@@ -104,7 +104,7 @@ library IncrementalBinaryTree {
|
||||
uint256 updateIndex;
|
||||
|
||||
for (uint8 i = 0; i < depth; ) {
|
||||
updateIndex |= uint256(proofPathIndices[i] & 1) << uint256(i);
|
||||
updateIndex |= uint256(proofPathIndices[i]) << uint256(i);
|
||||
|
||||
if (proofPathIndices[i] == 0) {
|
||||
if (proofSiblings[i] == self.lastSubtrees[i][1]) {
|
||||
|
||||
Reference in New Issue
Block a user