dhiway / cord.js

Cord JS API
Apache License 2.0
69 stars 49 forks source link

Update stream-bench.ts : Error #73

Closed adi-a11y closed 1 year ago

adi-a11y commented 1 year ago

Error: 🙌 Block TPS (extrinsic) - Infinity schemaStream { schemaId: 'schema:cord:m3xHjB9PpC73bFLy5jYGVs3mCFuiRjCWS2wEhiNiWJW8DEVv7', contents: { name: 'Bob : 0x7dc3f305b167f2c11aa2d8309d2e799e1e48f54970179924f282a1a6c5915cb2', age: 29, id: 'did:cord:3wrrWSNfQPkf6xTqUdzAseKiic6Yb9nE7STsrTBzDkRNTeQi', gender: 'Male', country: 'India' }, holder: 'did:cord:3wrrWSNfQPkf6xTqUdzAseKiic6Yb9nE7STsrTBzDkRNTeQi', issuer: 'did:cord:3uCyMvZxGLimZgB5wUjwqkQVbKV7FqubBTPQBUMF7gq8U667' } 🔖 Extrinsic creation took 0.013s line 331

undefined - Cannot read properties of undefined (reading 'issuer')

amarts commented 1 year ago

Few issues here:

  1. registry authorization is missing.
  2. createStream() needs a IDocument to be created,
  3. createStream() itself anchors the transaction, so that shouldn't happen.