From 589e47f63d63e4f4c67cd6ca2da08bf272fe35b4 Mon Sep 17 00:00:00 2001 From: GarmashAlex Date: Sun, 28 Dec 2025 16:10:56 +0300 Subject: [PATCH] fix: return DIDResolutionResult from resolveDidDocument --- src/utils/did-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/did-helper.ts b/src/utils/did-helper.ts index d06bd666..111c9519 100644 --- a/src/utils/did-helper.ts +++ b/src/utils/did-helper.ts @@ -1,7 +1,7 @@ import { Hex } from '@iden3/js-crypto'; import { Id, buildDIDType, genesisFromEthAddress, DID } from '@iden3/js-iden3-core'; import { Hash } from '@iden3/js-merkletree'; -import { DIDResolutionResult, VerificationMethod, DIDResolutionMetadata } from 'did-resolver'; +import { DIDResolutionResult, VerificationMethod } from 'did-resolver'; import { keccak256 } from 'ethers'; import { hexToBytes } from './encoding'; @@ -114,7 +114,7 @@ export const resolveDidDocument = async ( gist?: Hash; signature?: DIDDocumentSignature; } -): Promise => { +): Promise => { let didString = encodeURIComponent(did.string()); // for gist resolve we have to `hide` user did (look into resolver implementation) const isGistRequest = opts?.gist && !opts.state;