From 2e768c150b44eb3ac8e41e7bafdd46911be57397 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Thu, 11 Apr 2024 07:41:25 -0400 Subject: [PATCH] Add comment to NewChainReaderService to be more clear about the fact 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 --- .changeset/empty-tomatoes-yawn.md | 5 +++++ core/services/relay/evm/chain_reader.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/empty-tomatoes-yawn.md diff --git a/.changeset/empty-tomatoes-yawn.md b/.changeset/empty-tomatoes-yawn.md new file mode 100644 index 00000000000..3f6e94b79a9 --- /dev/null +++ b/.changeset/empty-tomatoes-yawn.md @@ -0,0 +1,5 @@ +--- +"chainlink": minor +--- + +Add a comment to Chain Reader Service constructor that specifies that anonymous events are not supported. diff --git a/core/services/relay/evm/chain_reader.go b/core/services/relay/evm/chain_reader.go index ff4f026d118..e7035f4716f 100644 --- a/core/services/relay/evm/chain_reader.go +++ b/core/services/relay/evm/chain_reader.go @@ -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"),