From f219dd514c76387c61f521e3a6534c7398a6ac6a Mon Sep 17 00:00:00 2001 From: spengrah Date: Fri, 30 Aug 2024 14:25:45 -0500 Subject: [PATCH] cleanup --- src/PublicLockV14Eligibility.sol | 3 ++- test/PublicLockEligibility.t.sol | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PublicLockV14Eligibility.sol b/src/PublicLockV14Eligibility.sol index 6abb648..d76abe6 100644 --- a/src/PublicLockV14Eligibility.sol +++ b/src/PublicLockV14Eligibility.sol @@ -19,12 +19,13 @@ contract PublicLockV14Eligibility is HatsEligibilityModule, ILockKeyPurchaseHook /// @dev Thrown when a trying to transfer a key from the lock error NotTransferable(); - // @dev Thrown when the referrer fee is not the same in the lock as in this contract + /// @dev Thrown when the referrer fee is not the same in the lock as in this contract error InvalidReferrerFee(); /// @dev Thrown when a lock-only function is called by an address that is not the lock contract error NotLock(); + /// @dev Thrown when the hat minting fails error HatMintFailed(); /*////////////////////////////////////////////////////////////// diff --git a/test/PublicLockEligibility.t.sol b/test/PublicLockEligibility.t.sol index 37527c9..12a0f5d 100644 --- a/test/PublicLockEligibility.t.sol +++ b/test/PublicLockEligibility.t.sol @@ -7,7 +7,6 @@ import { IUnlock } from "../lib/unlock/smart-contracts/contracts/interfaces/IUnl import { HatsModuleFactory, IHats } from "hats-module/utils/DeployFunctions.sol"; import { Deploy, DeployInstance } from "../script/Deploy.s.sol"; import { IHats } from "hats-protocol/Interfaces/IHats.sol"; -import { HatsErrors } from "hats-protocol/Interfaces/HatsErrors.sol"; contract PublicLockV14EligibilityTest is Deploy, Test { /// @dev Inherit from DeployPrecompiled instead of Deploy if working with pre-compiled contracts