mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
merged multinetwork into poc-urql
This commit is contained in:
commit
339b4238e6
@ -65,6 +65,7 @@ function usePublish(): UsePublish {
|
|||||||
new Date(Date.now()).toISOString().split('.')[0] + 'Z'
|
new Date(Date.now()).toISOString().split('.')[0] + 'Z'
|
||||||
const services: Service[] = []
|
const services: Service[] = []
|
||||||
const price = '1'
|
const price = '1'
|
||||||
|
asset.main.dateCreated = asset.main.datePublished = publishedDate
|
||||||
|
|
||||||
switch (serviceType) {
|
switch (serviceType) {
|
||||||
case 'access': {
|
case 'access': {
|
||||||
@ -118,9 +119,9 @@ function usePublish(): UsePublish {
|
|||||||
providerUri
|
providerUri
|
||||||
)
|
)
|
||||||
.next(setStep)
|
.next(setStep)
|
||||||
|
|
||||||
await ocean.assets.publishDdo(ddo, account.getId())
|
|
||||||
Logger.log('ddo created', ddo)
|
Logger.log('ddo created', ddo)
|
||||||
|
await ocean.assets.publishDdo(ddo, account.getId())
|
||||||
|
Logger.log('ddo published')
|
||||||
await sleep(20000)
|
await sleep(20000)
|
||||||
setStep(7)
|
setStep(7)
|
||||||
return ddo
|
return ddo
|
||||||
|
@ -62,7 +62,7 @@ export function getNetworkDataById(
|
|||||||
networkId: number
|
networkId: number
|
||||||
): EthereumListsChain {
|
): EthereumListsChain {
|
||||||
const networkData = data.filter(
|
const networkData = data.filter(
|
||||||
({ node }: { node: EthereumListsChain }) => node.networkId === networkId
|
({ node }: { node: EthereumListsChain }) => node.chainId === networkId
|
||||||
)[0]
|
)[0]
|
||||||
return networkData.node
|
return networkData.node
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user