Skip to content

Commit

Permalink
🚧 Remove TdwDIDResolver capability
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Nov 26, 2024
1 parent 1adbd1e commit 081e62c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions acapy_agent/resolver/default/tdw.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from re import Pattern
from typing import Optional, Sequence, Text

from did_tdw.resolver import ResolutionResult, resolve_did
# from did_tdw.resolver import ResolutionResult, resolve_did

from ...config.injection_context import InjectionContext
from ...core.profile import Profile
Expand All @@ -33,8 +33,9 @@ async def _resolve(
self, profile: Profile, did: str, service_accept: Optional[Sequence[Text]] = None
) -> dict:
"""Resolve DID using TDW."""
response: ResolutionResult = await resolve_did(did)
if response.resolution_metadata and response.resolution_metadata.get("error"):
return response.resolution_metadata
# response: ResolutionResult = await resolve_did(did)
# if response.resolution_metadata and response.resolution_metadata.get("error"):
# return response.resolution_metadata

return response.document
# return response.document
return {}

0 comments on commit 081e62c

Please sign in to comment.