Payable constructors #4989
-
Hello, I've searched the web and I couldn't find anything about how to deploy a contract with a payable constructor. The ethers.js documentation didn't go into detail about the parameters of the deploy function (it simply says deploy(...)). I'm thinking that there would have to be a parameter that takes the msg.value. Does anybody know how to approach this? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Mar 2, 2023
Replies: 1 comment 2 replies
-
@lancu15 The same way you pass msg.value to other functions. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lancu15 The same way you pass msg.value to other functions.
deploy({value: ethers.utils.parseEther("1"))