mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
parent
98beb1c3af
commit
ec34dc8f53
@ -177,16 +177,15 @@ export async function getAlgorithmsForAsset(
|
|||||||
const publisherTrustedAlgorithms =
|
const publisherTrustedAlgorithms =
|
||||||
computeService.compute.publisherTrustedAlgorithms || []
|
computeService.compute.publisherTrustedAlgorithms || []
|
||||||
|
|
||||||
let algorithms: Asset[]
|
if (!computeService.compute || publisherTrustedAlgorithms.length === 0) {
|
||||||
if (!computeService.compute) {
|
return []
|
||||||
algorithms = []
|
|
||||||
} else {
|
|
||||||
const gueryResults = await queryMetadata(
|
|
||||||
getQueryString(publisherTrustedAlgorithms, asset.chainId),
|
|
||||||
token
|
|
||||||
)
|
|
||||||
algorithms = gueryResults?.results
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const gueryResults = await queryMetadata(
|
||||||
|
getQueryString(publisherTrustedAlgorithms, asset.chainId),
|
||||||
|
token
|
||||||
|
)
|
||||||
|
const algorithms: Asset[] = gueryResults?.results
|
||||||
return algorithms
|
return algorithms
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user