Skip to main content

Command Palette

Search for a command to run...

Ethernaut Challenge-2 Fallout

Published
•1 min read•View as Markdown

We again copy the contract code inside the Remix Ide and then create an instance of that contract from the address already available to us.

In solidity, A function with the same name as the contract is normally a constructor and its bytecode aren't included in the resulting contract.

Hence this is the flaw that is present inside the smart contract. The developer has written a function to make it a constructor but there is a spelling mistake while writing this function.

Thereby we can simply call the Fal1Out function and claim the ownership.

More from this blog

Dhruv's Web development journey

64 posts