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 =
|
||||
computeService.compute.publisherTrustedAlgorithms || []
|
||||
|
||||
let algorithms: Asset[]
|
||||
if (!computeService.compute) {
|
||||
algorithms = []
|
||||
} else {
|
||||
const gueryResults = await queryMetadata(
|
||||
getQueryString(publisherTrustedAlgorithms, asset.chainId),
|
||||
token
|
||||
)
|
||||
algorithms = gueryResults?.results
|
||||
if (!computeService.compute || publisherTrustedAlgorithms.length === 0) {
|
||||
return []
|
||||
}
|
||||
|
||||
const gueryResults = await queryMetadata(
|
||||
getQueryString(publisherTrustedAlgorithms, asset.chainId),
|
||||
token
|
||||
)
|
||||
const algorithms: Asset[] = gueryResults?.results
|
||||
return algorithms
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user