mirror of
https://github.com/waku-org/waku-rlnv1-contract.git
synced 2025-02-24 05:08:13 +00:00
15 lines
358 B
Solidity
15 lines
358 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.15;
|
|
|
|
function noDuplicate(uint256[] calldata ids) pure returns (bool) {
|
|
uint256 len = ids.length;
|
|
for (uint256 i = 0; i < len; i++) {
|
|
for (uint256 j = i + 1; j < len; j++) {
|
|
if (ids[i] == ids[j]) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|