From b66cda6d8c164b547d1f8ebdb903cb3b7552dd18 Mon Sep 17 00:00:00 2001 From: Anton <14254374+0xmad@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:29:27 -0600 Subject: [PATCH] chore: use view modifier for verifying poll proof --- packages/contracts/contracts/Poll.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contracts/contracts/Poll.sol b/packages/contracts/contracts/Poll.sol index 50caac72d..ba1a636c6 100644 --- a/packages/contracts/contracts/Poll.sol +++ b/packages/contracts/contracts/Poll.sol @@ -315,7 +315,7 @@ contract Poll is Params, Utilities, SnarkCommon, IPoll { uint256 _index, PubKey calldata _pubKey, uint256[8] memory _proof - ) internal returns (bool isValid) { + ) internal view returns (bool isValid) { // Get the verifying key from the VkRegistry VerifyingKey memory vk = extContracts.vkRegistry.getPollVk( extContracts.maci.stateTreeDepth(), @@ -339,7 +339,7 @@ contract Poll is Params, Utilities, SnarkCommon, IPoll { uint256 _voiceCreditBalance, uint256 _index, PubKey calldata _pubKey - ) public returns (uint256[] memory publicInputs) { + ) public view returns (uint256[] memory publicInputs) { publicInputs = new uint256[](5); publicInputs[0] = _pubKey.x;