Skip to content

Commit

Permalink
Add comment to NewChainReaderService to be more clear about the fact …
Browse files Browse the repository at this point in the history
…that anonymous events are not supported (#12686)

* Add log line to NewChainReaderService to be more clear about the fact that anonymous events are not supported

* Add changeset

---------

Co-authored-by: ilija <pavlovicilija42@gmail.com>
  • Loading branch information
nolag and ilija42 committed Apr 11, 2024
1 parent 00cdd13 commit 2e768c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-tomatoes-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

Add a comment to Chain Reader Service constructor that specifies that anonymous events are not supported.
1 change: 1 addition & 0 deletions core/services/relay/evm/chain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type chainReader struct {
}

// NewChainReaderService is a constructor for ChainReader, returns nil if there is any error
// Note that the ChainReaderService returned does not support anonymous events.
func NewChainReaderService(ctx context.Context, lggr logger.Logger, lp logpoller.LogPoller, chain legacyevm.Chain, config types.ChainReaderConfig) (ChainReaderService, error) {
cr := &chainReader{
lggr: lggr.Named("ChainReader"),
Expand Down

0 comments on commit 2e768c1

Please sign in to comment.