Skip to content
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

Replace the FullProof type with the SemaphoreProof type in the packages contracts tests #385

Merged
merged 1 commit into from
Oct 18, 2023
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
4 changes: 2 additions & 2 deletions packages/contracts/test/Semaphore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable jest/valid-expect */
import { Group } from "@semaphore-protocol/group"
import { Identity } from "@semaphore-protocol/identity"
import { FullProof, generateProof } from "@semaphore-protocol/proof"
import { SemaphoreProof, generateProof } from "@semaphore-protocol/proof"
import { expect } from "chai"
import { constants, Signer } from "ethers"
import { ethers, run } from "hardhat"
Expand Down Expand Up @@ -237,7 +237,7 @@ describe("Semaphore", () => {

group.addMembers(members)

let fullProof: FullProof
let fullProof: SemaphoreProof

before(async () => {
await semaphoreContract.addMembers(groupId, [members[1], members[2]])
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/test/SemaphoreVoting.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable jest/valid-expect */
import { Group } from "@semaphore-protocol/group"
import { Identity } from "@semaphore-protocol/identity"
import { FullProof, generateProof } from "@semaphore-protocol/proof"
import { SemaphoreProof, generateProof } from "@semaphore-protocol/proof"
import { expect } from "chai"
import { Signer } from "ethers"
import { ethers, run } from "hardhat"
Expand Down Expand Up @@ -142,7 +142,7 @@ describe("SemaphoreVoting", () => {

group.addMembers([identity.commitment, BigInt(1)])

let fullProof: FullProof
let fullProof: SemaphoreProof

before(async () => {
await semaphoreVotingContract.connect(accounts[1]).addVoter(pollIds[1], BigInt(1))
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/test/SemaphoreWhistleblowing.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable jest/valid-expect */
import { Group } from "@semaphore-protocol/group"
import { Identity } from "@semaphore-protocol/identity"
import { FullProof, generateProof } from "@semaphore-protocol/proof"
import { SemaphoreProof, generateProof } from "@semaphore-protocol/proof"
import { expect } from "chai"
import { Signer, utils } from "ethers"
import { ethers, run } from "hardhat"
Expand Down Expand Up @@ -143,7 +143,7 @@ describe("SemaphoreWhistleblowing", () => {

group.addMembers([identity.commitment, BigInt(1)])

let fullProof: FullProof
let fullProof: SemaphoreProof

before(async () => {
await semaphoreWhistleblowingContract.createEntity(entityIds[1], editor, treeDepth)
Expand Down
Loading