This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
Open
Description
Hi,
I think I found an issue in /functions/DIDResolution.ts
:
Please note that uniResolvers
is an array, so ...uniResolvers
will send N args to the Resolver
constructor (where N is the number of elements of the array). Causing that only the first element of the array is configured as resolver.
Proposed fix, use a json object instead of array:
let uniResolvers = {};
for (const didMethod of opts.didMethods) {
const uniResolver = getUniResolver(getMethodFromDid(didMethod), { resolveUrl: opts.resolveUrl });
uniResolvers = { ...uniResolvers, ...uniResolver };
}
return new Resolver(uniResolvers);
Metadata
Assignees
Labels
No labels