The Ethernaut CTF Solutions | 02 - Fallout
Goals
The hack
Unlike a normal function that can be called anytime, a constructor is only executed once during the creation of the contract. In solidity versions before 0.8.0, a constructor was defined by naming it the same as your contract's name.
...
blog.pedrojok.com2 min read