question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No args (and other info) when using multiple-topics filter, but exist when topic is empty

See original GitHub issue

If I specify multiple topics for filter, args, event, eventSignature and decode are gone. Here is what I tried so far:

This doesn’t work (I don’t get any events at all):

const filter = {
      address: contract.address,
      topics: [
        [ utils.id("CustomEvent(string,bool)") ],
        [ utils.id("CustomEventB(string,bool,string)") ],
        [ utils.id("CustomEventA(string,bool,bool,string)") ],
        ],
        null,
      ],
    };

This following gets the event, but with args and other info mentioned above are gone:

const filter = {
      address: contract.address,
      topics: [
        [
          utils.id("CustomEvent(string,bool)"),
          utils.id("CustomEventB(string,bool,string)"),
          utils.id("CustomEventA(string,bool,bool,string)"),
        ],
        null,
      ],
    };

The following works:

const filter = {
      address: contract.address,
      topics: [],
    };

The last one get me all info of an event, but it basically doesn’t apply any filtering.

At first I thought it was because I was doing event overloading, or somehow related to this issue #1031, so I renamed the overloading events, but still the same issu.

Me thinking that if all the info exist when no filtering, the should also exist when filtering, right? Or I’m missing something?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ricmoocommented, Apr 28, 2021

Thanks @zemse. I’ll look into this shortly.

1reaction
div-doscommented, Aug 16, 2022

Yup it does make sense. Thanks, looking forward to v6!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Kafka Consumers: Reading Data from Kafka
If we add more consumers to a single group with a single topic than we have partitions, some of the consumers will be...
Read more >
django-filter messing around with empty field - Stack Overflow
I think documentation answers your question: Filtering by an empty string. It's not currently possible to filter by an empty string, ...
Read more >
Kafka Topics CLI Tutorial | Learn Apache Kafka with Conduktor
How to create, delete, describe, or change a Kafka topic using the command line interface. ... To avoid issues it is best to...
Read more >
KafkaConsumer (kafka 2.4.0 API)
A client that consumes records from a Kafka cluster. This client transparently handles the failure of Kafka brokers, and transparently adapts as topic...
Read more >
Spring Cloud Stream Kafka Binder Reference Guide
Unknown Kafka producer or consumer properties provided through this configuration are filtered out and not allowed to propagate. Properties here supersede any ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found