DEV Community

Discussion on: Day 3 - Initializing Smart Contract

Collapse
 
yongchanghe profile image
Yongchang He

If you have state variables in your contract, you can use constructor as an alternative to initialize them. Here is an example from Smart Contract Engineer channel. Enjoy and have fun!