From 310f4478f84fb853f8449cc462f880982b466847 Mon Sep 17 00:00:00 2001 From: Karim Stekelenburg Date: Fri, 20 May 2022 15:39:15 +0200 Subject: [PATCH] fix: invalid injection symbols in W3cCredService (#786) Signed-off-by: Karim --- packages/core/src/modules/vc/W3cCredentialService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/modules/vc/W3cCredentialService.ts b/packages/core/src/modules/vc/W3cCredentialService.ts index 5efaeda92f..02fbb541be 100644 --- a/packages/core/src/modules/vc/W3cCredentialService.ts +++ b/packages/core/src/modules/vc/W3cCredentialService.ts @@ -17,6 +17,7 @@ import { inject, Lifecycle, scoped } from 'tsyringe' import jsonld, { documentLoaderNode, documentLoaderXhr } from '../../../types/jsonld' import vc from '../../../types/vc' import { AgentConfig } from '../../agent/AgentConfig' +import { InjectionSymbols } from '../../constants' import { createWalletKeyPairClass } from '../../crypto/WalletKeyPair' import { deriveProof } from '../../crypto/signature-suites/bbs' import { AriesFrameworkError } from '../../error' @@ -44,11 +45,11 @@ export class W3cCredentialService { private suiteRegistry: SignatureSuiteRegistry public constructor( - @inject('Wallet') wallet: Wallet, + @inject(InjectionSymbols.Wallet) wallet: Wallet, w3cCredentialRepository: W3cCredentialRepository, didResolver: DidResolverService, agentConfig: AgentConfig, - logger: Logger + @inject(InjectionSymbols.Logger) logger: Logger ) { this.wallet = wallet this.w3cCredentialRepository = w3cCredentialRepository