From 0c4806f18fe2f3f3bf44233799a7d127a88dd9c1 Mon Sep 17 00:00:00 2001 From: 0xmad <0xmad@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:25:57 -0500 Subject: [PATCH] feat(contracts): add virtual modifiers for poll --- packages/contracts/contracts/Poll.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/contracts/contracts/Poll.sol b/packages/contracts/contracts/Poll.sol index f6b3cfa77..36916a508 100644 --- a/packages/contracts/contracts/Poll.sol +++ b/packages/contracts/contracts/Poll.sol @@ -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(); }