From 81d9b9d85ca0522d7f1f2e2c161908ad8a5ab76e Mon Sep 17 00:00:00 2001 From: ilija Date: Thu, 13 Jun 2024 13:05:07 +0200 Subject: [PATCH] Rename CR verifyEventInputsUsed to verifyEventIndexedInputsUsed --- core/services/relay/evm/chain_reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/relay/evm/chain_reader.go b/core/services/relay/evm/chain_reader.go index 9fef7260f1d..9cfe846d55d 100644 --- a/core/services/relay/evm/chain_reader.go +++ b/core/services/relay/evm/chain_reader.go @@ -229,7 +229,7 @@ func (cr *chainReader) addEvent(contractName, eventName string, a abi.ABI, chain } filterArgs, codecTopicInfo, indexArgNames := setupEventInput(event, inputFields) - if err := verifyEventInputsUsed(eventName, inputFields, indexArgNames); err != nil { + if err := verifyEventIndexedInputsUsed(eventName, inputFields, indexArgNames); err != nil { return err } @@ -321,7 +321,7 @@ func (cr *chainReader) getEventInput(def types.ChainReaderDefinition, contractNa return inputInfo, inMod, nil } -func verifyEventInputsUsed(eventName string, inputFields []string, indexArgNames map[string]bool) error { +func verifyEventIndexedInputsUsed(eventName string, inputFields []string, indexArgNames map[string]bool) error { for _, value := range inputFields { if !indexArgNames[abi.ToCamelCase(value)] { return fmt.Errorf("%w: %s is not an indexed argument of event %s", commontypes.ErrInvalidConfig, value, eventName)