From 9105e56f4884bc5506589b49e7faac4a3f9c4474 Mon Sep 17 00:00:00 2001 From: dholms Date: Fri, 8 Mar 2024 19:38:53 -0600 Subject: [PATCH] fix sequencer teest --- packages/ozone/src/context.ts | 6 ++++++ packages/ozone/tests/sequencer.test.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/ozone/src/context.ts b/packages/ozone/src/context.ts index 0a18feda86a..9533cede5fc 100644 --- a/packages/ozone/src/context.ts +++ b/packages/ozone/src/context.ts @@ -26,6 +26,7 @@ export type AppContextOptions = { appviewAgent: AtpAgent pdsAgent: AtpAgent | undefined signingKey: Keypair + signingKeyId: number idResolver: IdResolver imgInvalidator?: ImageInvalidator backgroundQueue: BackgroundQueue @@ -105,6 +106,7 @@ export class AppContext { appviewAgent, pdsAgent, signingKey, + signingKeyId, idResolver, backgroundQueue, sequencer, @@ -151,6 +153,10 @@ export class AppContext { return this.opts.signingKey } + get signingKeyId(): number { + return this.opts.signingKeyId + } + get plcClient(): plc.Client { return new plc.Client(this.cfg.identity.plcUrl) } diff --git a/packages/ozone/tests/sequencer.test.ts b/packages/ozone/tests/sequencer.test.ts index f12092bd27e..1f5e3dee35c 100644 --- a/packages/ozone/tests/sequencer.test.ts +++ b/packages/ozone/tests/sequencer.test.ts @@ -39,7 +39,7 @@ describe('sequencer', () => { ...label, cid: label.cid ? label.cid : '', sig: label.sig ? Buffer.from(label.sig) : null, - signingKey: network.ozone.ctx.signingKey.did(), + signingKeyId: network.ozone.ctx.signingKeyId, } }