From 401de9387e641583a0a20414b3133c29f9a6c7af Mon Sep 17 00:00:00 2001 From: wojciech-turek Date: Wed, 16 Aug 2023 09:22:25 +0200 Subject: [PATCH] Update natspec --- packages/asset/contracts/AssetReveal.sol | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/asset/contracts/AssetReveal.sol b/packages/asset/contracts/AssetReveal.sol index 669846583b..bf53ace26a 100644 --- a/packages/asset/contracts/AssetReveal.sol +++ b/packages/asset/contracts/AssetReveal.sol @@ -3,15 +3,10 @@ pragma solidity 0.8.18; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol"; -import { - AccessControlUpgradeable, - ContextUpgradeable -} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; +import {AccessControlUpgradeable, ContextUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import {TokenIdUtils} from "./libraries/TokenIdUtils.sol"; import {AuthSuperValidator} from "./AuthSuperValidator.sol"; -import { - ERC2771HandlerUpgradeable -} from "@sandbox-smart-contracts/dependency-metatx/contracts/ERC2771HandlerUpgradeable.sol"; +import {ERC2771HandlerUpgradeable} from "@sandbox-smart-contracts/dependency-metatx/contracts/ERC2771HandlerUpgradeable.sol"; import {IAsset} from "./interfaces/IAsset.sol"; import {IAssetReveal} from "./interfaces/IAssetReveal.sol"; @@ -362,10 +357,10 @@ contract AssetReveal is /// @param metadataHashes The hashes of the metadata /// @param prevTokenId The previous token id from which the assets are revealed /// @return tokenIdArray The array of tokenIds to mint - function getRevealedTokenIds(string[] calldata metadataHashes, uint256 prevTokenId) - internal - returns (uint256[] memory) - { + function getRevealedTokenIds( + string[] calldata metadataHashes, + uint256 prevTokenId + ) internal returns (uint256[] memory) { IAsset.AssetData memory data = prevTokenId.getData(); require(!data.revealed, "AssetReveal: already revealed"); uint256[] memory tokenIdArray = new uint256[](metadataHashes.length); @@ -405,11 +400,15 @@ contract AssetReveal is } /// @notice Set permission for instant reveal for a given tier + /// @param tier the tier to set the permission for + /// @param allowed allow or disallow instant reveal for the given tier function setTierInstantRevealAllowed(uint8 tier, bool allowed) external onlyRole(DEFAULT_ADMIN_ROLE) { tierInstantRevealAllowed[tier] = allowed; } /// @notice Get permission for instant reveal for a given tier + /// @param tier The tier to check + /// @return Whether instant reveal is allowed for the given tier function getTierInstantRevealAllowed(uint8 tier) external view returns (bool) { return tierInstantRevealAllowed[tier]; }