From 0f48a8bd7090a9086959531965184ee8ff88ae29 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Wed, 7 Feb 2024 08:55:53 +0200 Subject: [PATCH] fix messages --- ocean_provider/utils/util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ocean_provider/utils/util.py b/ocean_provider/utils/util.py index c46c2783..483f48ff 100644 --- a/ocean_provider/utils/util.py +++ b/ocean_provider/utils/util.py @@ -60,11 +60,11 @@ def get_service_files_list( files_json["datatokenAddress"] ) != Web3.toChecksumAddress(service.datatoken_address): raise Exception( - f"Provider {network_name}: Invalid datatokenAddress. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}" + f"Provider {network_name}: Mismatch of datatoken. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}" ) except Exception as e: raise Exception( - f"Provider {network_name}: Mismatch of datatoken. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}" + f"Provider {network_name}: Invalid datatokenAddress. Got {files_json['datatokenAddress']} vs expected {service.datatoken_address}" ) try: @@ -72,11 +72,11 @@ def get_service_files_list( files_json["nftAddress"] ) != Web3.toChecksumAddress(asset.nftAddress): raise Exception( - f"Provider {network_name}: Invalid nftAddress. Got {files_json['nftAddress']} vs expected {asset.nftAddress}" + f"Provider {network_name}: Mismatch of dataNft. Got {files_json['nftAddress']} vs expected {asset.nftAddress}" ) except: raise Exception( - f"Provider {network_name}: Mismatch of dataNft. Got {files_json['nftAddress']} vs expected {asset.nftAddress}" + f"Provider {network_name}: Invalid nftAddress. Got {files_json['nftAddress']} vs expected {asset.nftAddress}" ) files_list = files_json["files"] if not isinstance(files_list, list):