mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-10 15:18:41 -05:00
style: format code with prettier
This commit is contained in:
@@ -37,7 +37,7 @@ contract Semaphore is ISemaphore, SemaphoreCore, SemaphoreGroups {
|
||||
constructor(Verifier[] memory _verifiers) {
|
||||
for (uint8 i = 0; i < _verifiers.length; ) {
|
||||
verifiers[_verifiers[i].merkleTreeDepth] = IVerifier(_verifiers[i].contractAddress);
|
||||
unchecked{
|
||||
unchecked {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,10 +26,10 @@ contract SemaphoreVoting is ISemaphoreVoting, SemaphoreCore, SemaphoreGroups {
|
||||
"SemaphoreVoting: parameters lists does not have the same length"
|
||||
);
|
||||
|
||||
for (uint8 i = 0; i < depths.length;) {
|
||||
for (uint8 i = 0; i < depths.length; ) {
|
||||
verifiers[depths[i]] = IVerifier(verifierAddresses[i]);
|
||||
unchecked{
|
||||
++i;
|
||||
unchecked {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,9 +28,9 @@ contract SemaphoreWhistleblowing is ISemaphoreWhistleblowing, SemaphoreCore, Sem
|
||||
"SemaphoreWhistleblowing: parameters lists does not have the same length"
|
||||
);
|
||||
|
||||
for (uint8 i = 0; i < depths.length;) {
|
||||
for (uint8 i = 0; i < depths.length; ) {
|
||||
verifiers[depths[i]] = IVerifier(verifierAddresses[i]);
|
||||
unchecked{
|
||||
unchecked {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user