Skip to content

Provider.on("block") correct order #3183

Answered by ricmoo
rodrigoherrerai asked this question in Q&A
Discussion options

You must be logged in to vote

Put a console.log(n) before the await, and you should see the events are occurring in the correct order.

Once you do an await though, you are queuing a bunch of things that can then occur in any order from the event queue, depending on the when the network responds.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rodrigoherrerai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants