Skip to content

Commit

Permalink
correct chainCheck logic
Browse files Browse the repository at this point in the history
  • Loading branch information
axelKingsley committed Nov 5, 2024
1 parent 1617aeb commit ecda465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/interop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ecda465

Please sign in to comment.