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

fix minor logic issue

This commit is contained in:
paulo-ocean 2024-09-09 14:46:39 +01:00
parent f3c44d4850
commit 0e06347a0a

View File

@ -290,8 +290,8 @@ export async function createAsset(
// create the files encrypted string
assetUrl.datatokenAddress = datatokenAddressAsset
assetUrl.nftAddress = nftAddress
// TODO if template 4 no need to encrypt it??
if (config.confidentialEVM) {
// if template 4 no need to encrypt it??
if (!config.confidentialEVM) {
ddo.services[0].files = await ProviderInstance.encrypt(assetUrl, chainID, providerUrl)
}