Skip to content

Commit

Permalink
refactor(contracts): support version range (#891)
Browse files Browse the repository at this point in the history
re #888
  • Loading branch information
cedoor authored Oct 31, 2024
1 parent 901d095 commit 7e183f3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/contracts/Semaphore.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

import {ISemaphore} from "./interfaces/ISemaphore.sol";
import {ISemaphoreVerifier} from "./interfaces/ISemaphoreVerifier.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/base/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

/// @dev Minimum supported tree depth.
uint8 constant MIN_DEPTH = 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/base/SemaphoreGroups.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

import {ISemaphoreGroups} from "../interfaces/ISemaphoreGroups.sol";
import {InternalLeanIMT, LeanIMTData} from "@zk-kit/lean-imt.sol/InternalLeanIMT.sol";
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/base/SemaphoreVerifier.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Part of this file was generated with [snarkJS](https://github.com/iden3/snarkjs).

pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

import {MAX_DEPTH} from "./Constants.sol";
import {SemaphoreVerifierKeyPts} from "./SemaphoreVerifierKeyPts.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// Part of this file was generated with [snarkJS](https://github.com/iden3/snarkjs).
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

library SemaphoreVerifierKeyPts {
error Semaphore__VKPtBytesMaxDepthInvariantViolated(uint256 actual, uint256 expected);
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/contracts/interfaces/ISemaphore.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

/// @title Semaphore contract interface.
interface ISemaphore {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

/// @title SemaphoreGroups contract interface.
interface ISemaphoreGroups {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity >=0.8.23 <=0.8.28;

/// @title SemaphoreVerifier contract interface.
interface ISemaphoreVerifier {
Expand Down

0 comments on commit 7e183f3

Please sign in to comment.