Ethernaut Fallout

Diogo Pereira
3 min readJul 12, 2022

The Constructor Function

The constructor is a special function that is used to initialise contract’s state and variables. These are some of its key properties:

  • A contract can have only one constructor.
  • A constructor code is executed once when a contract is created and it is used to initialise contract state.
  • After a constructor code has…

--

--

Diogo Pereira

I help organisations build cyber-resilient applications, bring security awareness and mindset growth tips to interested individuals