diff --git a/src/baseClient.ts b/src/baseClient.ts index 1d3a305..a06bc4c 100644 --- a/src/baseClient.ts +++ b/src/baseClient.ts @@ -129,6 +129,10 @@ export default abstract class BaseClient { console.error(`Invalid Optimistic Update: ${verify.reason}`); return null; } + + this._latestOptimisticUpdate = + capella.ssz.LightClientOptimisticUpdate.serialize(update); + console.log( `Optimistic update verified for slot ${update.attestedHeader.beacon.slot}`, );