Skip to content

Commit

Permalink
chore: use view modifier for verifying poll proof
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Dec 6, 2024
1 parent 2f03bd8 commit b66cda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/contracts/Poll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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;
Expand Down

0 comments on commit b66cda6

Please sign in to comment.