Skip to content

Commit

Permalink
docs(contracts): improve whistleblowing contract docs (#18)
Browse files Browse the repository at this point in the history
* docs(contracts): improve whistleblowing contract docs

* Update packages/contracts/contracts/SemaphoreWhistleblowing.sol

Co-authored-by: Cedoor <[email protected]>

---------

Co-authored-by: Cedoor <[email protected]>
  • Loading branch information
vplasencia and cedoor authored Sep 12, 2024
1 parent 020a902 commit 95f15e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build": "yarn build:libraries && yarn compile:libraries",
"build": "yarn build:libraries && yarn compile:contracts",
"build:libraries": "yarn workspaces foreach -A --no-private run build",
"compile:contracts": "yarn workspace contract-extensions compile",
"test": "yarn test:libraries && yarn test:contracts && yarn test:circuits",
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/contracts/SemaphoreWhistleblowing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ contract SemaphoreWhistleblowing is ISemaphoreWhistleblowing {
_;
}

/// @dev Initializes the Semaphore group used to verify the user's ZK proofs.
/// @param _semaphore: Semaphore group address.
/// @dev Initializes the Semaphore instance.
/// @param _semaphore: Semaphore contract address.
constructor(ISemaphore _semaphore) {
semaphore = _semaphore;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ interface ISemaphoreWhistleblowing {
/// @param leak: News leak.
event LeakPublished(uint256 indexed entityId, uint256 leak);

/// @dev Creates an entity and the associated Merkle tree/group.
/// @dev Creates an entity and its associated Merkle tree/group.
/// An entity represents a group of individuals, such as an organization or
/// event participants.
/// @param editor: Editor of the entity.
function createEntity(address editor) external;

Expand Down

0 comments on commit 95f15e6

Please sign in to comment.