From 11bf30b8f9a64049f7dbdab2cadfeb11a4b3598e Mon Sep 17 00:00:00 2001 From: Petteri Stenius Date: Fri, 19 Jan 2024 17:30:59 +0200 Subject: [PATCH] uses KeyStates.query with seal --- examples/integration-scripts/singlesig-dip.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/integration-scripts/singlesig-dip.test.ts b/examples/integration-scripts/singlesig-dip.test.ts index 626b494d..cc8ef8ac 100644 --- a/examples/integration-scripts/singlesig-dip.test.ts +++ b/examples/integration-scripts/singlesig-dip.test.ts @@ -41,6 +41,7 @@ describe('singlesig-dip', () => { result = await client1.identifiers().interact('name1', seal); let op1 = await result.op(); + // refresh keystate to sn=1 let op2 = await client2.keyStates().query(name1_id, '1'); await Promise.all([ @@ -74,7 +75,8 @@ describe('singlesig-dip', () => { result = await client1.identifiers().interact('name1', seal); op1 = await result.op(); - op2 = await client2.keyStates().query(name1_id, '2'); + // refresh keystate to seal event + op2 = await client2.keyStates().query(name1_id, undefined, seal); await Promise.all([ (op = await waitOperation(client2, op)),