Skip to content

Commit

Permalink
Rename CR verifyEventInputsUsed to verifyEventIndexedInputsUsed
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Jun 13, 2024
1 parent d3f8ae0 commit 81d9b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/relay/evm/chain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 81d9b9d

Please sign in to comment.