Skip to content

Commit

Permalink
feat: move UpgradeToMismatchedContractName to IContractMetadata inter…
Browse files Browse the repository at this point in the history
…face
  • Loading branch information
IsabellaSmallcombe committed Oct 11, 2023
1 parent e30297c commit 2724fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ZoraNFTCreatorV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import {IContractMetadata} from "./interfaces/IContractMetadata.sol";
contract ZoraNFTCreatorV1 is OwnableUpgradeable, UUPSUpgradeable, IContractMetadata, Version(8) {
string private constant CANNOT_BE_ZERO = "Cannot be 0 address";

/// Contract names do not match
error UpgradeToMismatchedContractName(string expected, string actual);

/// @notice Emitted when a edition is created reserving the corresponding token IDs.
event CreatedDrop(
address indexed creator,
Expand Down
3 changes: 3 additions & 0 deletions src/interfaces/IContractMetadata.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
pragma solidity 0.8.17;

interface IContractMetadata {
/// Contract names do not match
error UpgradeToMismatchedContractName(string expected, string actual);

/// @notice Contract name returns the pretty contract name
function contractName() external returns (string memory);

Expand Down

0 comments on commit 2724fe1

Please sign in to comment.