Skip to content

Commit

Permalink
chore(contracts): optimization and typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Jul 9, 2024
1 parent dad8c3c commit b0c6fbd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions contracts/contracts/Poll.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

import { Params } from "./utilities/Params.sol";
import { SnarkCommon } from "./crypto/SnarkCommon.sol";
import { EmptyBallotRoots } from "./trees/EmptyBallotRoots.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/contracts/interfaces/IMACI.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import { AccQueue } from "../trees/AccQueue.sol";

/// @title IMACI
/// @notice MACI interface
interface IMACI {
Expand Down
2 changes: 1 addition & 1 deletion contracts/contracts/interfaces/IPoll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface IPoll {
/// @notice Allows anyone to publish a message (an encrypted command and signature).
/// This function also enqueues the message.
/// @param _message The message to publish
/// @param _encPubKey An epheremal public key which can be combined with the
/// @param _encPubKey An ephemeral public key which can be combined with the
/// coordinator's private key to generate an ECDH shared key with which
/// to encrypt the message.
function publishMessage(DomainObjs.Message memory _message, DomainObjs.PubKey calldata _encPubKey) external;
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-v1.2/solidity-docs/Poll.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ This function also enqueues the message.
| Name | Type | Description |
| ----------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| \_message | struct DomainObjs.Message | The message to publish |
| \_encPubKey | struct DomainObjs.PubKey | An epheremal public key which can be combined with the coordinator's private key to generate an ECDH shared key with which to encrypt the message. |
| \_encPubKey | struct DomainObjs.PubKey | An ephemeral public key which can be combined with the coordinator's private key to generate an ECDH shared key with which to encrypt the message. |

### publishMessageBatch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This function also enqueues the message.
| Name | Type | Description |
| ----------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| \_message | struct DomainObjs.Message | The message to publish |
| \_encPubKey | struct DomainObjs.PubKey | An epheremal public key which can be combined with the coordinator's private key to generate an ECDH shared key with which to encrypt the message. |
| \_encPubKey | struct DomainObjs.PubKey | An ephemeral public key which can be combined with the coordinator's private key to generate an ECDH shared key with which to encrypt the message. |

### mergeMaciStateAqSubRoots

Expand Down

0 comments on commit b0c6fbd

Please sign in to comment.