From ecda465811ba0a98e85ab514f03d3a13e513e2bd Mon Sep 17 00:00:00 2001 From: axelKingsley Date: Mon, 4 Nov 2024 21:09:32 -0600 Subject: [PATCH] correct chainCheck logic --- eth/interop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/interop.go b/eth/interop.go index 653cd29f85..f044f20120 100644 --- a/eth/interop.go +++ b/eth/interop.go @@ -24,7 +24,7 @@ func (s *Ethereum) CheckMessages(ctx context.Context, messages []interoptypes.Me // if errors are encountered, no logs are returned. func (s *Ethereum) SimLogs(tx *types.Transaction) ([]*types.Log, error) { chainConfig := s.APIBackend.ChainConfig() - if chainConfig.IsOptimism() { + if !chainConfig.IsOptimism() { return nil, errors.New("expected OP-Stack chain config, SimLogs is an OP-Stack feature") } header := s.BlockChain().CurrentBlock()