Skip to content

Commit 7e183f3

Browse files
authored
refactor(contracts): support version range (#891)
re #888
1 parent 901d095 commit 7e183f3

8 files changed

+8
-8
lines changed

packages/contracts/contracts/Semaphore.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
import {ISemaphore} from "./interfaces/ISemaphore.sol";
55
import {ISemaphoreVerifier} from "./interfaces/ISemaphoreVerifier.sol";

packages/contracts/contracts/base/Constants.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
/// @dev Minimum supported tree depth.
55
uint8 constant MIN_DEPTH = 1;

packages/contracts/contracts/base/SemaphoreGroups.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
import {ISemaphoreGroups} from "../interfaces/ISemaphoreGroups.sol";
55
import {InternalLeanIMT, LeanIMTData} from "@zk-kit/lean-imt.sol/InternalLeanIMT.sol";

packages/contracts/contracts/base/SemaphoreVerifier.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
// Part of this file was generated with [snarkJS](https://github.com/iden3/snarkjs).
33

4-
pragma solidity 0.8.23;
4+
pragma solidity >=0.8.23 <=0.8.28;
55

66
import {MAX_DEPTH} from "./Constants.sol";
77
import {SemaphoreVerifierKeyPts} from "./SemaphoreVerifierKeyPts.sol";

packages/contracts/contracts/base/SemaphoreVerifierKeyPts.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
// Part of this file was generated with [snarkJS](https://github.com/iden3/snarkjs).
3-
pragma solidity 0.8.23;
3+
pragma solidity >=0.8.23 <=0.8.28;
44

55
library SemaphoreVerifierKeyPts {
66
error Semaphore__VKPtBytesMaxDepthInvariantViolated(uint256 actual, uint256 expected);

packages/contracts/contracts/interfaces/ISemaphore.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
/// @title Semaphore contract interface.
55
interface ISemaphore {

packages/contracts/contracts/interfaces/ISemaphoreGroups.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
/// @title SemaphoreGroups contract interface.
55
interface ISemaphoreGroups {

packages/contracts/contracts/interfaces/ISemaphoreVerifier.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//SPDX-License-Identifier: MIT
2-
pragma solidity 0.8.23;
2+
pragma solidity >=0.8.23 <=0.8.28;
33

44
/// @title SemaphoreVerifier contract interface.
55
interface ISemaphoreVerifier {

0 commit comments

Comments
 (0)