From 190106bdce988aa91cdf26d745762996c50021bc Mon Sep 17 00:00:00 2001 From: Maria Carmina Date: Mon, 25 Sep 2023 12:16:03 +0300 Subject: [PATCH] Fix algo validation. --- ocean_provider/validation/algo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocean_provider/validation/algo.py b/ocean_provider/validation/algo.py index b3d870ad..c63540db 100644 --- a/ocean_provider/validation/algo.py +++ b/ocean_provider/validation/algo.py @@ -502,8 +502,10 @@ def validate_algo(self): """Validates algorithm details that allow the algo dict to be built.""" algo_data = self.data["algorithm"] algorithm_did = algo_data.get("documentId") + algo_asset = get_asset_from_metadatastore(get_metadata_url(), algorithm_did) + algo_service = algo_asset.get_service_by_id(algo_data.get("serviceId")) - privacy_options = self.service.compute_dict + privacy_options = algo_service.compute_dict if algorithm_did: return self._validate_trusted_algos(