From 852731733140780f07b2abf126fcc0df880c86a1 Mon Sep 17 00:00:00 2001 From: vplasencia Date: Tue, 27 Feb 2024 23:23:06 +0100 Subject: [PATCH] refactor(cli-template-monorepo-subgraph): update variable name --- .../apps/contracts/test/Feedback.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/cli-template-monorepo-subgraph/apps/contracts/test/Feedback.ts b/packages/cli-template-monorepo-subgraph/apps/contracts/test/Feedback.ts index 7fd6eaa64..7733e3b86 100644 --- a/packages/cli-template-monorepo-subgraph/apps/contracts/test/Feedback.ts +++ b/packages/cli-template-monorepo-subgraph/apps/contracts/test/Feedback.ts @@ -59,26 +59,26 @@ describe("Feedback", () => { const feedback = encodeBytes32String("Hello World") - const fullProof = await generateProof(users[1], group, feedback, groupId) + const proof = await generateProof(users[1], group, feedback, groupId) const transaction = feedbackContract.sendFeedback( - fullProof.merkleTreeDepth, - fullProof.merkleTreeRoot, - fullProof.nullifier, + proof.merkleTreeDepth, + proof.merkleTreeRoot, + proof.nullifier, feedback, - fullProof.points + proof.points ) await expect(transaction) .to.emit(semaphoreContract, "ProofValidated") .withArgs( groupId, - fullProof.merkleTreeDepth, - fullProof.merkleTreeRoot, - fullProof.nullifier, - fullProof.message, + proof.merkleTreeDepth, + proof.merkleTreeRoot, + proof.nullifier, + proof.message, groupId, - fullProof.points + proof.points ) }) })