Skip to content

Commit

Permalink
Merge pull request privacy-scaling-explorations#1828 from privacy-sca…
Browse files Browse the repository at this point in the history
…ling-explorations/feature/poll-methods

feat(contracts): add virtual modifiers for poll
  • Loading branch information
0xmad authored Sep 25, 2024
2 parents 2d9bac4 + 0c4806f commit 26b30e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/contracts/contracts/Poll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ contract Poll is Params, Utilities, SnarkCommon, IPoll {
/// @dev Can only be submitted before the voting deadline
/// @param _messages the messages
/// @param _encPubKeys the encrypted public keys
function publishMessageBatch(Message[] calldata _messages, PubKey[] calldata _encPubKeys) external {
function publishMessageBatch(
Message[] calldata _messages,
PubKey[] calldata _encPubKeys
) public virtual isWithinVotingDeadline {
if (_messages.length != _encPubKeys.length) {
revert InvalidBatchLength();
}
Expand Down

0 comments on commit 26b30e7

Please sign in to comment.