1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

adapt transformPublishFormToDdo

This commit is contained in:
Matthias Kretschmann 2021-11-25 14:20:00 +00:00
parent 06dca21d47
commit b64e4ff5dc
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -85,13 +85,18 @@ export async function transformPublishFormToDdo(
const filesEncrypted =
files?.length &&
files[0].valid &&
(await getEncryptedFileUrls(filesTransformed, providerUrl, did, accountId))
(await getEncryptedFileUrls(
filesTransformed,
providerUrl.url,
did,
accountId
))
const newService: Service = {
type: access,
files: filesEncrypted || '',
datatokenAddress,
serviceEndpoint: providerUrl,
serviceEndpoint: providerUrl.url,
timeout: mapTimeoutStringToSeconds(timeout),
...(access === 'compute' && {
compute: {