Browse Source

fix a problem stopping "pnpm start:dev"

master
Trent Larson 4 months ago
parent
commit
2d5a09de00
  1. 4
      src/vc/did-eth-local-resolver.js

4
src/vc/did-eth-local-resolver.js

@ -10,7 +10,7 @@ const { DIDResolutionResult } = require('did-resolver');
*
* Similar code resides in endorser-ch
*/
export const didEthLocalResolver = async(did) => {
const didEthLocalResolver = async(did) => {
const didRegex = /^did:ethr:(0x[0-9a-fA-F]{40})$/;
const match = did.match(didRegex);
@ -43,3 +43,5 @@ export const didEthLocalResolver = async(did) => {
throw new Error(`Unsupported DID format: ${did}`);
};
module.exports = { didEthLocalResolver };

Loading…
Cancel
Save