@novasamatech/statement-store 0.7.7 → 0.7.8-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,7 +94,12 @@ describe('session', () => {
94
94
  it('queries own and peer statements on creation', async () => {
95
95
  const { adapter } = makeSession();
96
96
  await delay();
97
- expect(adapter.queryStatements).toHaveBeenCalledTimes(2);
97
+ // Two single-topic matchAll queries — one per channel (outgoing/incoming).
98
+ // The topics must differ; otherwise both queries would target the same channel.
99
+ const topics = adapter.queryStatements.mock.calls.map(([f]) => f.matchAll);
100
+ expect(topics).toHaveLength(2);
101
+ expect(topics.map(t => t.length)).toEqual([1, 1]);
102
+ expect(topics[0]).not.toEqual(topics[1]);
98
103
  });
99
104
  it('expiry is initialized from max own statement expiry', async () => {
100
105
  const highExpiry = createExpiryFromDuration(7 * 24 * 60 * 60) + 9999n;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/statement-store",
3
3
  "type": "module",
4
- "version": "0.7.7",
4
+ "version": "0.7.8-0",
5
5
  "description": "Statement store integration",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "README.md"
26
26
  ],
27
27
  "dependencies": {
28
- "@novasamatech/scale": "0.7.7",
28
+ "@novasamatech/scale": "0.7.8-0",
29
29
  "@novasamatech/sdk-statement": "^0.6.0",
30
30
  "@polkadot-api/substrate-bindings": "^0.20.1",
31
31
  "@polkadot-api/substrate-client": "^0.7.0",