Skip to content

Can you call a function that return a Promise without await keyword? #5642

Discussion options

You must be logged in to vote

@software-dev2010 getSigners function is a async function and for it we need to use await before it.

But here it is used because later while connecting await is used. fund.connect for it we do not need await because it is not async function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by software-dev2010
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