From 96dceb5055fdfc6c36c451c0c548571b565e0eb9 Mon Sep 17 00:00:00 2001 From: Sai Ranjit Tummalapalli Date: Mon, 22 Jan 2024 18:52:01 +0530 Subject: [PATCH] fix: remove check for DifPresentationExchangeService registered on agent Signed-off-by: Sai Ranjit Tummalapalli --- .../DifPresentationExchangeProofFormatService.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/core/src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts b/packages/core/src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts index 3260e806d2..6e3a85438a 100644 --- a/packages/core/src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts +++ b/packages/core/src/modules/proofs/formats/dif-presentation-exchange/DifPresentationExchangeProofFormatService.ts @@ -45,12 +45,6 @@ export class PresentationExchangeProofFormatService implements ProofFormatServic public readonly formatKey = 'presentationExchange' as const private presentationExchangeService(agentContext: AgentContext) { - if (!agentContext.dependencyManager.isRegistered(DifPresentationExchangeService)) { - throw new AriesFrameworkError( - 'DifPresentationExchangeService is not registered on the Agent. Please provide the PresentationExchangeModule as a module on the agent' - ) - } - return agentContext.dependencyManager.resolve(DifPresentationExchangeService) }