diff --git a/packages/wasm/src/services/dids/index.test.js b/packages/wasm/src/services/dids/index.test.js index d78dbcd1..0151e93c 100644 --- a/packages/wasm/src/services/dids/index.test.js +++ b/packages/wasm/src/services/dids/index.test.js @@ -143,7 +143,7 @@ describe('DID Service', () => { it('expect to get did document', async () => { const document = 'document'; jest - .spyOn(blockchainService.dock.did, 'getDocument') + .spyOn(blockchainService.didModule, 'getDocument') .mockResolvedValue(document); const result = await service.getDidDockDocument( diff --git a/packages/wasm/src/services/dids/service.ts b/packages/wasm/src/services/dids/service.ts index 518a7c29..e67380c8 100644 --- a/packages/wasm/src/services/dids/service.ts +++ b/packages/wasm/src/services/dids/service.ts @@ -143,7 +143,7 @@ class DIDService { async getDidDockDocument(did) { assert(!!did, 'DID is required'); const dock = blockchainService.dock; - const result = await dock.did.getDocument(did); + const result = await blockchainService.didModule.getDocument(did); return result; }