Skip to content

Commit

Permalink
Adjust constNumOfKeys to also include event.ID in the count
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Apr 8, 2024
1 parent 96ee08d commit a129983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/pkg/chainlink/ocr2/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a129983

Please sign in to comment.