diff --git a/core/chains/evm/logpoller/orm.go b/core/chains/evm/logpoller/orm.go index 2026b3a308d..3cab2b90546 100644 --- a/core/chains/evm/logpoller/orm.go +++ b/core/chains/evm/logpoller/orm.go @@ -113,7 +113,7 @@ func (o *DbORM) InsertFilter(filter Filter, qopts ...pg.QOpt) (err error) { // https://github.com/jmoiron/sqlx/issues/91, https://github.com/jmoiron/sqlx/issues/428 var topicsColumns, topicsSql strings.Builder for n, topicValues := range topicArrays { - if topicValues != nil && len(topicValues) != 0 { + if len(topicValues) != 0 { topicCol := fmt.Sprintf("topic%d", n+2) fmt.Fprintf(&topicsColumns, ", %s", topicCol) fmt.Fprintf(&topicsSql, ",\n(SELECT unnest(:%s ::::BYTEA[]) %s) t%d", topicCol, topicCol, n+2)