Metadata file count check prior to batch minting for 1/1 collections

This commit is contained in:
Serkan Reis 2023-02-04 11:28:41 +03:00
parent 5d888dd8d6
commit 56e7986fbd

View File

@ -676,9 +676,14 @@ const CollectionCreationPage: NextPage = () => {
if (!uploadDetails) { if (!uploadDetails) {
throw new Error('Please select assets and metadata') throw new Error('Please select assets and metadata')
} }
// if (minterType === 'base' && uploadDetails.uploadMethod === 'new' && uploadDetails.assetFiles.length > 1) { if (
// throw new Error('Base Minter can only mint one asset at a time. Please select only one asset.') minterType === 'base' &&
// } uploadDetails.uploadMethod === 'new' &&
uploadDetails.assetFiles.length > 1 &&
uploadDetails.metadataFiles.length === 0
) {
throw new Error('Please select metadata files')
}
if (uploadDetails.uploadMethod === 'new' && uploadDetails.assetFiles.length === 0) { if (uploadDetails.uploadMethod === 'new' && uploadDetails.assetFiles.length === 0) {
throw new Error('Please select the assets') throw new Error('Please select the assets')
} }