From a7786fa21c76d91bba9bebf0bb21c9889cffda47 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 13 Jul 2023 03:12:49 -0400 Subject: [PATCH] style: fix typos --- src/baseClient.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/baseClient.ts b/src/baseClient.ts index 9da65fb..1d3a305 100644 --- a/src/baseClient.ts +++ b/src/baseClient.ts @@ -15,6 +15,7 @@ import { } from "#util.js"; import { LightClientUpdate, OptimisticUpdateCallback } from "#types.js"; import { assertValidLightClientUpdate } from "@lodestar/light-client/validation"; +import * as capella from "@lodestar/types/capella"; export interface BaseClientOptions { prover: IProver; @@ -39,6 +40,12 @@ export default abstract class BaseClient { this.options = options; } + private _latestOptimisticUpdate?: Uint8Array; + + get latestOptimisticUpdate(): Uint8Array { + return this._latestOptimisticUpdate as Uint8Array; + } + private _latestPeriod: number = -1; get latestPeriod(): number { @@ -117,7 +124,7 @@ export default abstract class BaseClient { this.latestCommittee as Uint8Array[], update, ); - // TODO: check the update agains the latest sync commttee + // TODO: check the update against the latest sync committee if (!verify.correct) { console.error(`Invalid Optimistic Update: ${verify.reason}`); return null;