From 85e0a80507cc1c46270f4526ab3b526e0f7f1bde Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Mon, 6 Nov 2023 15:27:47 -0800 Subject: [PATCH] fix all versions --- .../src/delegation/ZoraCreator1155Attribution.sol | 4 ++++ .../src/delegation/ZoraCreator1155PremintExecutorImpl.sol | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/1155-contracts/src/delegation/ZoraCreator1155Attribution.sol b/packages/1155-contracts/src/delegation/ZoraCreator1155Attribution.sol index 12384db4c..6f24664b7 100644 --- a/packages/1155-contracts/src/delegation/ZoraCreator1155Attribution.sol +++ b/packages/1155-contracts/src/delegation/ZoraCreator1155Attribution.sol @@ -421,6 +421,10 @@ library DelegatedTokenCreation { } function supportedPremintSignatureVersions() external pure returns (string[] memory versions) { + return _supportedPremintSignatureVersions(); + } + + function _supportedPremintSignatureVersions() internal pure returns (string[] memory versions) { versions = new string[](2); versions[0] = ZoraCreator1155Attribution.VERSION_1; versions[1] = ZoraCreator1155Attribution.VERSION_2; diff --git a/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol b/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol index f18c2769d..6f8332340 100644 --- a/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol +++ b/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol @@ -13,7 +13,7 @@ import {ZoraCreatorFixedPriceSaleStrategy} from "../minters/fixed-price/ZoraCrea import {IMinter1155} from "../interfaces/IMinter1155.sol"; import {ERC1155DelegationStorageV1} from "../delegation/ERC1155DelegationStorageV1.sol"; import {ZoraCreator1155PremintExecutorImplLib} from "./ZoraCreator1155PremintExecutorImplLib.sol"; -import {PremintEncoding, ZoraCreator1155Attribution, ContractCreationConfig, PremintConfig, PremintConfigV2, TokenCreationConfig, TokenCreationConfigV2} from "./ZoraCreator1155Attribution.sol"; +import {PremintEncoding, ZoraCreator1155Attribution, DelegatedTokenCreation, ContractCreationConfig, PremintConfig, PremintConfigV2, TokenCreationConfig, TokenCreationConfigV2} from "./ZoraCreator1155Attribution.sol"; import {IZoraCreator1155PremintExecutor} from "../interfaces/IZoraCreator1155PremintExecutor.sol"; import {IZoraCreator1155DelegatedCreation} from "../interfaces/IZoraCreator1155DelegatedCreation.sol"; @@ -222,7 +222,7 @@ contract ZoraCreator1155PremintExecutorImpl is // if contract hasn't been created yet, assume it will be created with the latest version // and thus supports all versions of the signature if (contractAddress.code.length == 0) { - return ZoraCreator1155Attribution.allVersions(); + return DelegatedTokenCreation._supportedPremintSignatureVersions(); } IZoraCreator1155 creatorContract = IZoraCreator1155(contractAddress);