chore: fix condition

This commit is contained in:
Danish Arora 2025-05-15 16:26:12 +05:30
parent 5a5d7b3e26
commit 741fb28c09
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -433,7 +433,7 @@ export class RLNBaseContract {
eraseFromMembershipSet: boolean = true
): Promise<ethers.ContractTransaction> {
if (
!(await this.isExpired(idCommitmentBigInt)) &&
!(await this.isExpired(idCommitmentBigInt)) ||
!(await this.isInGracePeriod(idCommitmentBigInt))
) {
throw new Error("Membership is not expired or in grace period");