Skip to content

getEventResult filter onlyConfirmed/onlyUnconfirmed not working #422

@ud-klee

Description

@ud-klee

The problem seems to be that when constructing the query string tronWeb is using snake-case parameter names, where the event query service expects camel-case names.

Query string construction here:
https://github.com/tronprotocol/tronweb/blob/v5.2.0/src/lib/event.js#L112

The /event/contract/{contractAddress} API endpoint in event query service:
https://github.com/tronprotocol/tron-eventquery/blob/master/src/main/java/org/tron/trongeventquery/contractevents/ContractEventController.java#L343

If I issue a raw HTTP request using camel-case names, it does work.

PS: This was tested with a local lite fullnode and local event query service, not public API providers.

Related issue #156

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions