Skip to content

Lesson 6: Hardhat Simple Storage #4966

Answered by AmitKochar1
GaneshDonikena asked this question in Q&A
Discussion options

You must be logged in to vote

I will do my best to explain it to you in plain English - wait() lets you mint a block that will record the transaction you are calling before calling a wait() function. for example, await simpleStorage.deployTransaction.wait(6) - in the case, you will wait for 6 blocks to be mined before carrying on the rest of the code. This allows you to proceed when a certain tx is complete.

I hope that makes sense!!

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by alymurtazamemon
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