1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 22:01:44 +02:00

Merge branch 'main' into feature/multinetwork

This commit is contained in:
Norbert 2021-07-08 10:21:04 +03:00
commit 89e683d840
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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
}