Skip to content

[v6] Can't listen for event #3838

Answered by ricmoo
viac92 asked this question in Q&A
Feb 27, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You can’t destruct events that are emitted from "*", since every event has a potentially different signature. So you only get the Event payload, that object you are getting.

So it should look like provider.on("*", (log, evt) => { console.log(log); }).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@viac92
Comment options

@bomb-on
Comment options

@ricmoo
Comment options

@crycime
Comment options

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