@semaphore-protocol/group 0.1.0 → 0.1.1

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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 0.1.0
3
+ * @version 0.1.1
4
4
  * @file A library for managing Semaphore groups.
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
@@ -80,7 +80,7 @@ var Group = /** @class */ (function () {
80
80
  * @param identityCommitment New member.
81
81
  */
82
82
  Group.prototype.addMember = function (identityCommitment) {
83
- this._merkleTree.insert(identityCommitment);
83
+ this._merkleTree.insert(BigInt(identityCommitment));
84
84
  };
85
85
  /**
86
86
  * Adds new members to the group.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 0.1.0
3
+ * @version 0.1.1
4
4
  * @file A library for managing Semaphore groups.
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
@@ -84,7 +84,7 @@ var Group = /** @class */ (function () {
84
84
  * @param identityCommitment New member.
85
85
  */
86
86
  Group.prototype.addMember = function (identityCommitment) {
87
- this._merkleTree.insert(identityCommitment);
87
+ this._merkleTree.insert(BigInt(identityCommitment));
88
88
  };
89
89
  /**
90
90
  * Adds new members to the group.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/group",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A library for managing Semaphore groups.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.node.js",
package/src/group.ts CHANGED
@@ -64,7 +64,7 @@ export default class Group {
64
64
  * @param identityCommitment New member.
65
65
  */
66
66
  addMember(identityCommitment: Member) {
67
- this._merkleTree.insert(identityCommitment)
67
+ this._merkleTree.insert(BigInt(identityCommitment))
68
68
  }
69
69
 
70
70
  /**