diff --git a/packages/apiUtils/src/resolvers/EndpointResolver.ts b/packages/apiUtils/src/resolvers/EndpointResolver.ts index 4a7a920bd2..d33418b189 100644 --- a/packages/apiUtils/src/resolvers/EndpointResolver.ts +++ b/packages/apiUtils/src/resolvers/EndpointResolver.ts @@ -1,4 +1,4 @@ -import { MoralisCore, ApiErrorCode, Config, MoralisApiError, RequestController } from '@moralisweb3/core'; +import { MoralisCore, ApiErrorCode, Config, MoralisApiError, RequestController, CoreConfig } from '@moralisweb3/core'; import { ApiConfig } from '../config/ApiConfig'; import { isNotFoundError } from '../errors/isNotFoundError'; import { ApiResultAdapter } from './ApiResultAdapter'; @@ -93,6 +93,7 @@ export class EndpointResolver, + + product: { + name: 'product', + defaultValue: undefined, + } as ConfigKey, }; diff --git a/packages/core/src/Config/CoreConfigSetup.ts b/packages/core/src/Config/CoreConfigSetup.ts index 923d48861d..6d09bb5976 100644 --- a/packages/core/src/Config/CoreConfigSetup.ts +++ b/packages/core/src/Config/CoreConfigSetup.ts @@ -7,5 +7,6 @@ export class CoreConfigSetup { config.registerKey(CoreConfig.buidEnvironment); config.registerKey(CoreConfig.defaultNetwork); + config.registerKey(CoreConfig.product); } } diff --git a/packages/core/src/Config/MoralisConfig.ts b/packages/core/src/Config/MoralisConfig.ts index b196620bbf..a0b7e09159 100644 --- a/packages/core/src/Config/MoralisConfig.ts +++ b/packages/core/src/Config/MoralisConfig.ts @@ -4,7 +4,7 @@ import { EvmChainish } from './interfaces/EvmChainish'; // @moralisweb3/core type CoreConfigType = typeof CoreConfig; -type CoreConfigValues = { [Key in keyof CoreConfigType]: CoreConfigType[Key]['defaultValue'] }; +type CoreConfigValues = Omit<{ [Key in keyof CoreConfigType]: CoreConfigType[Key]['defaultValue'] }, 'product'>; // @moralisweb3/evm-utils interface EvmUtilsConfigValues {