Skip to content

Having trouble getting a list of events for a contract with v6. Worked in v5. #4273

Answered by ptoner
ptoner asked this question in Q&A
Discussion options

You must be logged in to vote

I also switched from the StaticJsonRpcProvider to AlchemyProvider because it seemed like it had been removed? I don't think that would have anything to do with the contract.filter part of the problem though.

EDIT: Well ok I discovered that if I contract.queryFilter("*") it gives me the logs that I want. So maybe I can just skip that whole step where I manually put together the list of topics.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ptoner
Comment options

Answer selected by ptoner
Comment options

You must be logged in to vote
3 replies
@ptoner
Comment options

@ricmoo
Comment options

@WarrenPanDDDD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants