diff --git a/package.json b/package.json index e57b7a7ba..579e6a7c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nevermined-io/sdk", - "version": "3.0.43", + "version": "3.0.44", "description": "Javascript SDK for connecting with Nevermined Data Platform ", "main": "./dist/node/sdk.js", "typings": "./dist/node/sdk.d.ts", diff --git a/src/nevermined/api/RegistryBaseApi.ts b/src/nevermined/api/RegistryBaseApi.ts index 498ed66e8..83853f0c7 100644 --- a/src/nevermined/api/RegistryBaseApi.ts +++ b/src/nevermined/api/RegistryBaseApi.ts @@ -1,4 +1,5 @@ // @ts-nocheck +import { formatUnits } from 'viem' import { Instantiable, InstantiableConfig } from '../../Instantiable.abstract' import { generateId } from '../../common/helpers' import { DEFAULT_ENCRYPTION_METHOD, ZeroAddress } from '../../constants/AssetConstants' @@ -26,7 +27,6 @@ import { } from '../../types/MetadataTypes' import { zeroX } from '../../utils/ConversionTypeHelpers' import { SubscribablePromise } from '../../utils/SubscribablePromise' -import { formatUnits } from 'viem' import { AccessService, NFTAccessService, NFTSalesService } from '../AccessService' import { DID } from '../DID' import { CreateProgressStep, OrderProgressStep, UpdateProgressStep } from '../ProgressSteps' @@ -430,7 +430,9 @@ export abstract class RegistryBaseApi extends Instantiable { metadataService.attributes.encryptedFiles = JSON.parse(encryptedFilesResponse)['hash'] if ( - metadataService.attributes.main.type === 'service' && + (metadataService.attributes.main.type === 'service' || + metadataService.attributes.main.type === 'assistant' || + metadataService.attributes.main.type === 'agent') && metadataService.attributes.main.webService.internalAttributes ) { const encryptedServiceAttributesResponse = await this.nevermined.services.node.encrypt(