Skip to content

Why does module.exports = function require no () after the exported function? #174

Answered by PatrickAlphaC
gmluqa asked this question in Q&A
Discussion options

You must be logged in to vote

Great question!

So we are exporting the deployFunc function, we are next exporting the return value of deployFunc

We want hardhat to call deployFunc, we don't want hardhat to call whatever deployFunc has already returned. Let me know if that makes sense.

To really see, try exporting as you have said!

Replies: 1 comment

Comment options

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