From a12998341bf5c33b9e90a586e2ffc15ec9030370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 8 Apr 2024 17:19:15 +0900 Subject: [PATCH] Adjust constNumOfKeys to also include event.ID in the count --- relayer/pkg/chainlink/ocr2/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relayer/pkg/chainlink/ocr2/events.go b/relayer/pkg/chainlink/ocr2/events.go index 453faa5d9..22f0cd0d4 100644 --- a/relayer/pkg/chainlink/ocr2/events.go +++ b/relayer/pkg/chainlink/ocr2/events.go @@ -46,7 +46,7 @@ func ParseNewTransmissionEvent(event starknetrpc.EmittedEvent) (NewTransmissionE { const observationsLenIndex = 3 const constNumOfElements = 9 - const constNumOfKeys = 2 + const constNumOfKeys = 2 + 1 // additional 1 for the automatic event ID key if len(eventData) < constNumOfElements { return NewTransmissionEvent{}, errors.New("invalid: event data")