From 51b562385f5d5c69b2c7eb50f439b0da3a1b41b4 Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Mon, 17 Jun 2024 11:22:35 +0200 Subject: [PATCH] chore: added comments --- integrations/tendermint/src/runtime.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integrations/tendermint/src/runtime.ts b/integrations/tendermint/src/runtime.ts index 2456f423..1248908f 100644 --- a/integrations/tendermint/src/runtime.ts +++ b/integrations/tendermint/src/runtime.ts @@ -124,6 +124,9 @@ export default class Tendermint implements IRuntime { ); } + // check if finalize_block_events are present if every event attribute + // has a mode and that every mode attribute is either of value + // "BeginBlock" or "EndBlock" if (item.value.block_results.finalize_block_events) { for (const event of item.value.block_results.finalize_block_events) { const modeAttribute = event.attributes.find(