Skip to content

Commit e632099

Browse files
authored
Add missing implicit method from contract to interface (#814)
refactor(contracts): add missing implicit method from interface
1 parent 504c0f7 commit e632099

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/contracts/contracts/Semaphore.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ contract Semaphore is ISemaphore, SemaphoreGroups {
1919
mapping(uint256 => Group) public groups;
2020

2121
/// @dev Counter to assign an incremental id to the groups.
22+
/// This counter is used to keep track of the number of groups created.
2223
uint256 public groupCounter;
2324

2425
/// @dev Initializes the Semaphore verifier used to verify the user's ZK proofs.

packages/contracts/contracts/interfaces/ISemaphore.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ interface ISemaphore {
5555
uint256[8] points
5656
);
5757

58+
/// @dev Returns the current value of the group counter.
59+
/// @return The current group counter value.
60+
function groupCounter() external view returns (uint256);
61+
5862
/// @dev See {SemaphoreGroups-_createGroup}.
5963
function createGroup() external returns (uint256);
6064

0 commit comments

Comments
 (0)