Disallow non-constructor initialization #1391
Labels
contracts
Smart contract code.
good first issue
Low hanging fruit for new contributors to get involved!
Milestone
Some of our contracts (like
ReentrancyGuard
) initialize their state variables outside of a constructor (i.e. in their declaration). We should avoid doing this and move all initialization to the constructor, mainly for clarity, but also because this makes it easier to transform said constructors to initialization functions.The text was updated successfully, but these errors were encountered: