From c20f055e3bbf01c1b3546e59d9fd8df583cb4eac Mon Sep 17 00:00:00 2001 From: Sai Ranjit Tummalapalli Date: Sun, 28 Jan 2024 23:48:55 +0530 Subject: [PATCH] fix: remove check for DifPresentationExchangeService dependency (#1702) Signed-off-by: Sai Ranjit Tummalapalli Signed-off-by: Ariel Gentile --- .../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) }