1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

fix files, string, cannot be null

This commit is contained in:
paulo-ocean 2024-09-13 14:26:07 +01:00
parent d4272f48f8
commit a06a5c5cab

View File

@ -260,7 +260,7 @@ export async function createAsset(
assetUrl.nftAddress = nftAddress
// if confidential EVM no need to make encrypt call here
if (config.confidentialEVM) {
ddo.services[0].files = null // null on confidental EVM
ddo.services[0].files = '' // on confidental EVM it needs to be empty string not null, for schema validation
} else {
ddo.services[0].files = await ProviderInstance.encrypt(assetUrl, chainID, providerUrl)
}