Why does module.exports = function
require no ()
after the exported function?
#174
-
Context is during the fund me hard hat lesson, for Why isn't it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Great question! So we are exporting the We want hardhat to call To really see, try exporting as you have said! |
Beta Was this translation helpful? Give feedback.
Great question!
So we are exporting the
deployFunc
function, we are next exporting the return value ofdeployFunc
We want hardhat to call
deployFunc
, we don't want hardhat to call whateverdeployFunc
has already returned. Let me know if that makes sense.To really see, try exporting as you have said!