Skip to content

Commit

Permalink
fix all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Nov 10, 2023
1 parent 6b58a2e commit 85e0a80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 85e0a80

Please sign in to comment.