diff --git a/src/hooks/usePublish.ts b/src/hooks/usePublish.ts index fec472be2..19c6fb239 100644 --- a/src/hooks/usePublish.ts +++ b/src/hooks/usePublish.ts @@ -65,6 +65,7 @@ function usePublish(): UsePublish { new Date(Date.now()).toISOString().split('.')[0] + 'Z' const services: Service[] = [] const price = '1' + asset.main.dateCreated = asset.main.datePublished = publishedDate switch (serviceType) { case 'access': { @@ -118,9 +119,9 @@ function usePublish(): UsePublish { providerUri ) .next(setStep) - - await ocean.assets.publishDdo(ddo, account.getId()) Logger.log('ddo created', ddo) + await ocean.assets.publishDdo(ddo, account.getId()) + Logger.log('ddo published') await sleep(20000) setStep(7) return ddo diff --git a/src/utils/web3.ts b/src/utils/web3.ts index 13eaff34c..06cc93216 100644 --- a/src/utils/web3.ts +++ b/src/utils/web3.ts @@ -62,7 +62,7 @@ export function getNetworkDataById( networkId: number ): EthereumListsChain { const networkData = data.filter( - ({ node }: { node: EthereumListsChain }) => node.networkId === networkId + ({ node }: { node: EthereumListsChain }) => node.chainId === networkId )[0] return networkData.node }