Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add a specific issuer when created by the issuer node for ZeroKnowledgeProofRequest and issueCredential() in generateProofs() #32

Open
KavinduShamalka opened this issue Nov 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KavinduShamalka
Copy link

=============== generate proofs ===============
=============== user did ===============
did:polygonid:polygon:main:2q2RdhyEQ2aLM7a32oQjqFDQNucc7C3oSbxaQY4Z9t
/Users/mac04/js-sdk-examples/node_modules/@0xpolygonid/js-sdk/dist/node/cjs/storage/memory/merkletree.js:71
const treeWithMeta = this._data[identifier].find((treeWithInfo) => treeWithInfo.metaInfo.type == mtType);
^
TypeError: Cannot read properties of undefined (reading 'find')
at InMemoryMerkleTreeStorage.getMerkleTreeByIdentifierAndType (/Users/mac04/js-sdk-examples/node_modules/@0xpolygonid/js-sdk/dist/node/cjs/storage/memory/merkletree.js:71:53)
at IdentityWallet.getDIDTreeModel (/Users/mac04/js-sdk-examples/node_modules/@0xpolygonid/js-sdk/dist/node/cjs/identity/identity-wallet.js:217:51)
at IdentityWallet.issueCredential (/Users/mac04/js-sdk-examples/node_modules/@0xpolygonid/js-sdk/dist/node/cjs/identity/identity-wallet.js:302:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateProofs (/Users/mac04/js-sdk-examples/index.ts:456:22)
at async main (/Users/mac04/js-sdk-examples/index.ts:1075:7)
at async /Users/mac04/js-sdk-examples/index.ts:1125:3

@vmidyllic
Copy link
Contributor

Please, can you specify in what way you are adding issuer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@Kolezhniuk @volodymyr-basiuk @KavinduShamalka @vmidyllic and others