credo-ts icon indicating copy to clipboard operation
credo-ts copied to clipboard

Export metadata keys that the get fn can work with

Open jleach opened this issue 2 years ago • 0 comments

When fetching the legacy did the get fn below needs a key. Its not exported by AFJ so it needs to be looked up and passed in. Would be handy to export it as an enum or similar.

      const legacyDidKey = '_internal/legacyDid'

      const didRecord = await didRepository.getById(record.connectionRecord!.did!)
      const did = didRecord.metadata.get(legacyDidKey)!.unqualifiedDid

jleach avatar Nov 17 '22 18:11 jleach