We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MerkleTree
uint256
1 parent 45dd083 commit a99b31fCopy full SHA for a99b31f
contracts/utils/structs/MerkleTree.sol
@@ -88,7 +88,7 @@ library MerkleTree {
88
89
// Build each root of zero-filled subtrees
90
bytes32 currentZero = zero;
91
- for (uint32 i = 0; i < treeDepth; ++i) {
+ for (uint256 i = 0; i < treeDepth; ++i) {
92
Arrays.unsafeAccess(self._zeros, i).value = currentZero;
93
currentZero = fnHash(currentZero, currentZero);
94
}
@@ -143,7 +143,7 @@ library MerkleTree {
143
// Rebuild branch from leaf to root
144
uint256 currentIndex = index;
145
bytes32 currentLevelHash = leaf;
146
- for (uint32 i = 0; i < treeDepth; i++) {
+ for (uint256 i = 0; i < treeDepth; i++) {
147
// Reaching the parent node, is currentLevelHash the left child?
148
bool isLeft = currentIndex % 2 == 0;
149
0 commit comments