Remove batchSize check in Withdraw

This commit is contained in:
Keshav Gupta 2022-08-09 14:45:38 +02:00
parent f0d55cf797
commit ae6d137da7
No known key found for this signature in database
GPG Key ID: 42F874800B16699B
1 changed files with 0 additions and 1 deletions

View File

@ -60,7 +60,6 @@ contract RLN {
uint256 batchSize = secrets.length;
require(batchSize != 0, "RLN, withdrawBatch: batch size zero");
require(batchSize == pubkeyIndexes.length, "RLN, withdrawBatch: batch size mismatch pubkey indexes");
require(batchSize == receivers.length, "RLN, withdrawBatch: batch size mismatch receivers");
for (uint256 i = 0; i < batchSize; i++) {
_withdraw(secrets[i], pubkeyIndexes[i], msg.sender);
}