mirror of
https://github.com/logos-messaging/waku-rlnv1-contract.git
synced 2026-01-03 23:03:07 +00:00
chore: small gas optimization in a loop
This commit is contained in:
parent
58e09dcb80
commit
2e15891844
@ -36,8 +36,11 @@ contract RLN {
|
||||
poseidonHasher = IPoseidonHasher(_poseidonHasher);
|
||||
SET_SIZE = 1 << DEPTH;
|
||||
if (constructMembers.length > SET_SIZE) revert FullTree();
|
||||
for (uint256 i = 0; i < constructMembers.length; i++) {
|
||||
for (uint256 i = 0; i < constructMembers.length;) {
|
||||
_register(constructMembers[i]);
|
||||
unchecked {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user