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:
parent
d4272f48f8
commit
a06a5c5cab
@ -260,7 +260,7 @@ export async function createAsset(
|
|||||||
assetUrl.nftAddress = nftAddress
|
assetUrl.nftAddress = nftAddress
|
||||||
// if confidential EVM no need to make encrypt call here
|
// if confidential EVM no need to make encrypt call here
|
||||||
if (config.confidentialEVM) {
|
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 {
|
} else {
|
||||||
ddo.services[0].files = await ProviderInstance.encrypt(assetUrl, chainID, providerUrl)
|
ddo.services[0].files = await ProviderInstance.encrypt(assetUrl, chainID, providerUrl)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user