mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
adapt transformPublishFormToDdo
This commit is contained in:
parent
06dca21d47
commit
b64e4ff5dc
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user