From e96ca65f9c2193ec7b54d713db42c7c67d8580f4 Mon Sep 17 00:00:00 2001 From: jdsika Date: Tue, 10 Dec 2024 13:44:08 +0100 Subject: [PATCH] feat: remove reamining tags with contants Signed-off-by: jdsika --- .../common/asset/createTokenMetadata.test.ts | 4 ++-- apps/envited.ascs.digital/common/asset/createTokenMetadata.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts b/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts index 63565169..699af96c 100644 --- a/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts +++ b/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts @@ -210,7 +210,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: ['GaiaX', 'ASCS', 'ENVITED-X', 'EVES', 'nft', 'ASAM OpenDRIVE 1.6'], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6'], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], @@ -307,7 +307,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: ['GaiaX', 'ASCS', 'ENVITED-X', 'EVES', 'nft', 'ASAM OpenDRIVE 1.6'], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6'], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], diff --git a/apps/envited.ascs.digital/common/asset/createTokenMetadata.ts b/apps/envited.ascs.digital/common/asset/createTokenMetadata.ts index e4236383..78f2b840 100644 --- a/apps/envited.ascs.digital/common/asset/createTokenMetadata.ts +++ b/apps/envited.ascs.digital/common/asset/createTokenMetadata.ts @@ -45,7 +45,7 @@ export const createTokenMetadata = ({ const version = domainMetadata.data['hdmap:format']['hdmap:version']['@value'] const today = new Date() const date = today.toISOString().split('T')[0] - const tags = ['GaiaX', 'ASCS', 'ENVITED-X', 'EVES', 'nft', `${formatType} ${version}`] + const tags = [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, `${formatType} ${version}`] const isThirdPartyHosted = hasManifestThirdPartyLinks(manifest.data) return {