diff --git a/src/@types/MetaData.d.ts b/src/@types/MetaData.d.ts index 855973144..4b9c5f78a 100644 --- a/src/@types/MetaData.d.ts +++ b/src/@types/MetaData.d.ts @@ -8,6 +8,7 @@ import { export interface AdditionalInformationMarket extends AdditionalInformation { links?: File[] termsAndConditions: boolean + priceType: string } export interface MetadataMarket extends Metadata { diff --git a/src/components/pages/Publish/index.tsx b/src/components/pages/Publish/index.tsx index 4a443194d..49824ce0a 100644 --- a/src/components/pages/Publish/index.tsx +++ b/src/components/pages/Publish/index.tsx @@ -29,7 +29,7 @@ export default function PublishPage({ `) const metadata = transformPublishFormToMetadata(values) - const { tokensToMint, type } = values.price + const { tokensToMint } = values.price const serviceType = values.access === 'Download' ? 'access' : 'compute' console.log(` diff --git a/src/components/pages/Publish/utils.ts b/src/components/pages/Publish/utils.ts index 5edad4ca4..b84f40979 100644 --- a/src/components/pages/Publish/utils.ts +++ b/src/components/pages/Publish/utils.ts @@ -16,7 +16,8 @@ export function transformPublishFormToMetadata( tags, links, termsAndConditions, - files + files, + price } = data const metadata: MetadataMarket = { @@ -37,9 +38,9 @@ export function transformPublishFormToMetadata( // links: { // url: links // }, - termsAndConditions - }, - curation: AssetModel.curation + termsAndConditions, + priceType: price.type + } } return metadata diff --git a/src/models/Asset.ts b/src/models/Asset.ts index ce1478ee5..f1fe52840 100644 --- a/src/models/Asset.ts +++ b/src/models/Asset.ts @@ -18,13 +18,8 @@ const AssetModel: MetadataMarket = { links: undefined, // custom items - termsAndConditions: false - }, - curation: { - rating: 0, - numVotes: 0, - schema: '5-star voting', - isListed: true + termsAndConditions: false, + priceType: undefined } }