mirror of
https://github.com/logos-messaging/waku-rlnv1-contract.git
synced 2026-01-06 00:03:08 +00:00
chore: further gas optimization
This commit is contained in:
parent
ab739fb92b
commit
ec9502fa15
@ -36,7 +36,9 @@ contract RLN {
|
|||||||
poseidonHasher = IPoseidonHasher(_poseidonHasher);
|
poseidonHasher = IPoseidonHasher(_poseidonHasher);
|
||||||
SET_SIZE = 1 << DEPTH;
|
SET_SIZE = 1 << DEPTH;
|
||||||
if (constructMembers.length > SET_SIZE) revert FullTree();
|
if (constructMembers.length > SET_SIZE) revert FullTree();
|
||||||
for (uint256 i = 0; i < constructMembers.length;) {
|
|
||||||
|
uint256 len = constructMembers.length;
|
||||||
|
for (uint256 i = 0; i < len;) {
|
||||||
_register(constructMembers[i]);
|
_register(constructMembers[i]);
|
||||||
unchecked {
|
unchecked {
|
||||||
++i;
|
++i;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user