style: format code with prettier

This commit is contained in:
cedoor
2022-08-18 13:36:10 +02:00
parent 7390c28ea1
commit 4a2fddc5a0
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}
}

View File

@@ -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;
}
}