Skip to content

Fix typo for ISemaphore interface custom error #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/contracts/contracts/Semaphore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ contract Semaphore is ISemaphore, SemaphoreGroups {
}

if (groups[groupId].nullifiers[nullifier]) {
revert Semaphore__YouAreUsingTheSameNillifierTwice();
revert Semaphore__YouAreUsingTheSameNullifierTwice();
}

if (
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/interfaces/ISemaphore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface ISemaphore {
error Semaphore__MerkleTreeDepthIsNotSupported();
error Semaphore__MerkleTreeRootIsExpired();
error Semaphore__MerkleTreeRootIsNotPartOfTheGroup();
error Semaphore__YouAreUsingTheSameNillifierTwice();
error Semaphore__YouAreUsingTheSameNullifierTwice();
error Semaphore__InvalidProof();

/// It defines all the group parameters used by Semaphore.sol.
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/test/Semaphore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ describe("Semaphore", () => {

await expect(transaction).to.be.revertedWithCustomError(
semaphoreContract,
"Semaphore__YouAreUsingTheSameNillifierTwice"
"Semaphore__YouAreUsingTheSameNullifierTwice"
)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/semaphoreABI.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
{
"inputs": [],
"name": "Semaphore__YouAreUsingTheSameNillifierTwice",
"name": "Semaphore__YouAreUsingTheSameNullifierTwice",
"type": "error"
},
{
Expand Down