Replies: 1 comment
-
Context for Here, the event is the hash (which is only possible if the block containing the txn was indeed mined). Additionally, since this involves the usage of promises (and a try-catch for easier debugging), this one is more versatile than just using Put simply, this is a more modular approach and that you can definitely incorporate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Community,
In lesson 8, Patrick while creating front-end creates below function to listen whether the transaction has been mined or not.
We are also aware of
wait(blockConfirmation number)
functionality / method from ethers library, which kind of does the same thing (or is it?). Can some-one please let me know why should I go with the customlistenForTransactionMine
and notwait()
? Any differences or use-case?I would really appreciate some help here :)
Beta Was this translation helpful? Give feedback.
All reactions