@semaphore-protocol/cli-template-contracts-hardhat 4.0.0-alpha → 4.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,8 +24,17 @@ contract Feedback {
24
24
  uint256 merkleTreeRoot,
25
25
  uint256 nullifier,
26
26
  uint256 feedback,
27
- uint256[8] calldata proof
27
+ uint256[8] calldata points
28
28
  ) external {
29
- semaphore.validateProof(groupId, merkleTreeDepth, merkleTreeRoot, nullifier, feedback, groupId, proof);
29
+ ISemaphore.SemaphoreProof memory proof = ISemaphore.SemaphoreProof(
30
+ merkleTreeDepth,
31
+ merkleTreeRoot,
32
+ nullifier,
33
+ feedback,
34
+ groupId,
35
+ points
36
+ );
37
+
38
+ semaphore.validateProof(groupId, proof);
30
39
  }
31
40
  }
package/files.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/cli-template-contracts-hardhat",
3
- "version": "4.0.0-alpha",
3
+ "version": "4.0.0-alpha.2",
4
4
  "description": "Semaphore Hardhat template.",
5
5
  "license": "Unlicense",
6
6
  "files": [
@@ -35,10 +35,10 @@
35
35
  "@nomicfoundation/hardhat-network-helpers": "^1.0.0",
36
36
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
37
37
  "@nomicfoundation/hardhat-verify": "^2.0.0",
38
- "@semaphore-protocol/group": "4.0.0-alpha",
39
- "@semaphore-protocol/hardhat": "4.0.0-alpha",
40
- "@semaphore-protocol/identity": "4.0.0-alpha",
41
- "@semaphore-protocol/proof": "4.0.0-alpha",
38
+ "@semaphore-protocol/group": "4.0.0-alpha.2",
39
+ "@semaphore-protocol/hardhat": "4.0.0-alpha.2",
40
+ "@semaphore-protocol/identity": "4.0.0-alpha.2",
41
+ "@semaphore-protocol/proof": "4.0.0-alpha.2",
42
42
  "@typechain/ethers-v6": "^0.5.0",
43
43
  "@typechain/hardhat": "^9.0.0",
44
44
  "@types/chai": "^4.2.0",
@@ -55,7 +55,7 @@
55
55
  "typescript": "^5.3.3"
56
56
  },
57
57
  "dependencies": {
58
- "@semaphore-protocol/contracts": "4.0.0-alpha"
58
+ "@semaphore-protocol/contracts": "4.0.0-alpha.2"
59
59
  },
60
60
  "config": {
61
61
  "solidity": {
package/test/Feedback.ts CHANGED
@@ -52,7 +52,7 @@ describe("Feedback", () => {
52
52
  fullProof.merkleTreeRoot,
53
53
  fullProof.nullifier,
54
54
  feedback,
55
- fullProof.proof
55
+ fullProof.points
56
56
  )
57
57
 
58
58
  await expect(transaction)
@@ -64,7 +64,7 @@ describe("Feedback", () => {
64
64
  fullProof.nullifier,
65
65
  fullProof.message,
66
66
  groupId,
67
- fullProof.proof
67
+ fullProof.points
68
68
  )
69
69
  })
70
70
  })