diff --git a/.bumpversion.cfg b/.bumpversion.cfg index a0ac1114..67f13a94 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.3.10 +current_version = 1.3.11 commit = True tag = True diff --git a/ocean_provider/routes/decrypt.py b/ocean_provider/routes/decrypt.py index 5ba1947a..03d703ff 100644 --- a/ocean_provider/routes/decrypt.py +++ b/ocean_provider/routes/decrypt.py @@ -165,7 +165,11 @@ def _decrypt( # Check if DDO metadata state is ACTIVE (_, _, metadata_state, _) = get_metadata(web3, data_nft_address) logger.info(f"metadata_state = {metadata_state}") - if metadata_state in [MetadataState.ACTIVE, MetadataState.TEMPORARILY_DISABLED]: + if metadata_state in [ + MetadataState.ACTIVE, + MetadataState.TEMPORARILY_DISABLED, + MetadataState.UNLISTED, + ]: pass elif metadata_state == MetadataState.END_OF_LIFE: return error_response("Asset end of life", 403, logger) diff --git a/ocean_provider/utils/data_nft.py b/ocean_provider/utils/data_nft.py index 3dfeadb3..1bfdfeac 100644 --- a/ocean_provider/utils/data_nft.py +++ b/ocean_provider/utils/data_nft.py @@ -23,6 +23,7 @@ class MetadataState(IntEnum): DEPRECATED = 2 REVOKED = 3 TEMPORARILY_DISABLED = 4 + UNLISTED = 5 class Flags(IntFlag): diff --git a/setup.py b/setup.py index 4ff6db5c..c6647b67 100644 --- a/setup.py +++ b/setup.py @@ -107,7 +107,7 @@ url="https://github.com/oceanprotocol/provider-py", # fmt: off # bumpversion needs single quotes - version='1.3.10', + version='1.3.11', # fmt: on zip_safe=False, )