Skip to content

Commit

Permalink
fix: verifyProof function as view as it does not modify storage
Browse files Browse the repository at this point in the history
  • Loading branch information
dibi91 committed Sep 26, 2024
1 parent f0626be commit 7265a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Halo2Verifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contract Halo2Verifier {
{%- endmatch %}
bytes calldata proof,
uint256[] calldata instances
) public returns (bool) {
) public view returns (bool) {
assembly {
// Read EC point (x, y) at (proof_cptr, proof_cptr + 0x20),
// and check if the point is on affine plane,
Expand Down

0 comments on commit 7265a6b

Please sign in to comment.