@@ -146,6 +146,12 @@ func (p *PluginFactory) NewReportingPlugin(ctx context.Context, config ocr3types
146146 readerFacades [chain ] = cr
147147 }
148148
149+ // Wrap chainAccessors to clear TxHash
150+ wrappedAccessors := make (map [cciptypes.ChainSelector ]cciptypes.ChainAccessor )
151+ for chainSel , accessor := range p .chainAccessors {
152+ wrappedAccessors [chainSel ] = readerpkg .NewChainAccessorWrapper (accessor , false )
153+ }
154+
149155 // Bind the RMNHome contract
150156 var rmnHomeReader readerpkg.RMNHome
151157 if offchainConfig .RMNEnabled {
@@ -181,7 +187,7 @@ func (p *PluginFactory) NewReportingPlugin(ctx context.Context, config ocr3types
181187 ccipReader , err := readerpkg .NewCCIPChainReader (
182188 ctx ,
183189 logutil .WithComponent (lggr , "CCIPReader" ),
184- p . chainAccessors ,
190+ wrappedAccessors ,
185191 readerFacades ,
186192 p .chainWriters ,
187193 p .ocrConfig .Config .ChainSelector ,
@@ -193,7 +199,7 @@ func (p *PluginFactory) NewReportingPlugin(ctx context.Context, config ocr3types
193199 }
194200
195201 // The node supports the chain that the token prices are on.
196- _ , ok := p . chainAccessors [offchainConfig .PriceFeedChainSelector ]
202+ _ , ok := wrappedAccessors [offchainConfig .PriceFeedChainSelector ]
197203 if ok {
198204 // Bind all token aggregate contracts
199205 for _ , info := range offchainConfig .TokenInfo {
@@ -203,7 +209,7 @@ func (p *PluginFactory) NewReportingPlugin(ctx context.Context, config ocr3types
203209 fmt .Errorf ("failed to create unknown address from aggregator address %s: %w" ,
204210 info .AggregatorAddress , err )
205211 }
206- err = p . chainAccessors [offchainConfig .PriceFeedChainSelector ].
212+ err = wrappedAccessors [offchainConfig .PriceFeedChainSelector ].
207213 Sync (ctx , consts .ContractNamePriceAggregator , priceAggAddress )
208214 if err != nil {
209215 return nil , ocr3types.ReportingPluginInfo {},
@@ -215,7 +221,7 @@ func (p *PluginFactory) NewReportingPlugin(ctx context.Context, config ocr3types
215221
216222 onChainTokenPricesReader := readerpkg .NewPriceReader (
217223 logutil .WithComponent (lggr , "PriceReader" ),
218- p . chainAccessors ,
224+ wrappedAccessors ,
219225 offchainConfig .TokenInfo ,
220226 ccipReader ,
221227 offchainConfig .PriceFeedChainSelector ,
0 commit comments