diff --git a/packages/protocol-sdk/src/premint/preminter.ts b/packages/protocol-sdk/src/premint/preminter.ts index e56594d7e..daa4361fa 100644 --- a/packages/protocol-sdk/src/premint/preminter.ts +++ b/packages/protocol-sdk/src/premint/preminter.ts @@ -220,10 +220,12 @@ export async function isAuthorizedToCreateSignatureLegacy({ premintConfig, premintConfigVersion, signature, + signer, }: { collection: ContractCreationConfig; publicClient: PublicClient; signature: Hex; + signer: Address; } & PremintConfigAndVersion) { if (premintConfigVersion === PremintConfigVersion.V1) { const [isValidSignature] = await publicClient.readContract({ @@ -236,7 +238,15 @@ export async function isAuthorizedToCreateSignatureLegacy({ return isValidSignature; } - return isAuthorizedToCreatePremint({}); + return isAuthorizedToCreatePremint({ + premintConfigContractAdmin: collection.contractAdmin as Address, + collectionAddress: await getPremintCollectionAddress({ + publicClient: publicClient, + collection, + }), + publicClient, + signer, + }); } export async function isAuthorizedToCreatePremint({