From a0d5071ba7a84a83499c6e91bddee01eabb8437c Mon Sep 17 00:00:00 2001 From: whitetechna Date: Sun, 14 Apr 2024 16:20:41 +0100 Subject: [PATCH] chain to token --- .../scripts/vite-plugins/generateCustomTokenConfig.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts b/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts index f852d5d4080..5402e26f58f 100644 --- a/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts +++ b/packages/bridge-ui/scripts/vite-plugins/generateCustomTokenConfig.ts @@ -3,7 +3,7 @@ import { promises as fs } from 'fs'; import path from 'path'; import { Project, SourceFile, VariableDeclarationKind } from 'ts-morph'; -import configuredChainsSchema from '../../config/schemas/configuredChains.schema.json'; +import configuredCustomTokensSchema from '../../config/schemas/configuredCustomTokens.schema.json'; import type { Token } from '../../src/libs/token/types'; import { decodeBase64ToJson } from './../utils/decodeBase64ToJson'; import { formatSourceFile } from './../utils/formatSourceFile'; @@ -39,8 +39,8 @@ export function generateCustomTokenConfig() { // Decode base64 encoded JSON string configuredTokenConfigFile = decodeBase64ToJson(process.env.CONFIGURED_CUSTOM_TOKENS || ''); - // Valide JSON against schema - const isValid = validateJsonAgainstSchema(configuredTokenConfigFile, configuredChainsSchema); + // Validate JSON against schema + const isValid = validateJsonAgainstSchema(configuredTokenConfigFile, configuredCustomTokensSchema); if (!isValid) { throw new Error('encoded generateCustomTokenConfig.json is not valid.');