|
1 | 1 | // @ts-nocheck
|
| 2 | +import { formatUnits } from 'viem' |
2 | 3 | import { Instantiable, InstantiableConfig } from '../../Instantiable.abstract'
|
3 | 4 | import { generateId } from '../../common/helpers'
|
4 | 5 | import { DEFAULT_ENCRYPTION_METHOD, ZeroAddress } from '../../constants/AssetConstants'
|
@@ -26,7 +27,6 @@ import {
|
26 | 27 | } from '../../types/MetadataTypes'
|
27 | 28 | import { zeroX } from '../../utils/ConversionTypeHelpers'
|
28 | 29 | import { SubscribablePromise } from '../../utils/SubscribablePromise'
|
29 |
| -import { formatUnits } from 'viem' |
30 | 30 | import { AccessService, NFTAccessService, NFTSalesService } from '../AccessService'
|
31 | 31 | import { DID } from '../DID'
|
32 | 32 | import { CreateProgressStep, OrderProgressStep, UpdateProgressStep } from '../ProgressSteps'
|
@@ -430,7 +430,9 @@ export abstract class RegistryBaseApi extends Instantiable {
|
430 | 430 | metadataService.attributes.encryptedFiles = JSON.parse(encryptedFilesResponse)['hash']
|
431 | 431 |
|
432 | 432 | if (
|
433 |
| - metadataService.attributes.main.type === 'service' && |
| 433 | + (metadataService.attributes.main.type === 'service' || |
| 434 | + metadataService.attributes.main.type === 'assistant' || |
| 435 | + metadataService.attributes.main.type === 'agent') && |
434 | 436 | metadataService.attributes.main.webService.internalAttributes
|
435 | 437 | ) {
|
436 | 438 | const encryptedServiceAttributesResponse = await this.nevermined.services.node.encrypt(
|
|
0 commit comments