Skip to content

Commit

Permalink
Merge pull request #1960 from privacy-scaling-explorations/chore/poll…
Browse files Browse the repository at this point in the history
…-contract

chore: use view modifier for verifying poll proof
  • Loading branch information
0xmad authored Dec 6, 2024
2 parents 2f03bd8 + b66cda6 commit 30f517a
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 30f517a

Please sign in to comment.