0xPolygonID / js-sdk-examples

examples of usage polygonid-js-sdk
Apache License 2.0
15 stars 20 forks source link

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

Open KavinduShamalka opened 5 days ago

KavinduShamalka commented 5 days ago

=============== 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 commented 3 days ago

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