From bea4f46c9ae65b0049d1d077c0343b04a12d4579 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Wed, 7 Jul 2021 06:01:08 -0700 Subject: [PATCH 1/2] posible fix (#715) --- src/hooks/usePublish.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From ae26afccfb479a6b30e53baa597871447f0f884d Mon Sep 17 00:00:00 2001 From: mihaisc Date: Wed, 7 Jul 2021 06:52:56 -0700 Subject: [PATCH 2/2] fetch by chainId instead of networkId (#717) --- src/utils/web3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/web3.ts b/src/utils/web3.ts index 6fd76f18a..0c246ecb9 100644 --- a/src/utils/web3.ts +++ b/src/utils/web3.ts @@ -46,7 +46,7 @@ export function getNetworkData( networkId: number ): EthereumListsChain { const networkData = data.filter( - ({ node }: { node: EthereumListsChain }) => node.networkId === networkId + ({ node }: { node: EthereumListsChain }) => node.chainId === networkId )[0] return networkData.node }