Skip to content

Disallow non-constructor initialization #1391

@nventuro

Description

@nventuro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contractsSmart contract code.good first issueLow hanging fruit for new contributors to get involved!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions