constructor question #531
Answered
by
alymurtazamemon
rishigarg256
asked this question in
Q&A
-
for lesson 3 FundMe.sol,
Why use a constructor and not define owner = msg.sender without a constructor? |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jun 23, 2022
Replies: 1 comment 8 replies
-
@rishigarg256 When you will deploy the contract the first thing that will be called is the |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rishigarg256 When you will deploy the contract the first thing that will be called is the
constructor
, and whoever deploys the contract, the deployer address will be set as the owner.msg.sender
will be the deployer address.