Ethernaut Fallback
5 min readJun 6, 2022
The Fallback Function
For a Smart Contract to simply receive ether and add it to its total balance, there must be a fallback function which must be declared as payable. A fallback function is executed whenever a contract receives ether without any additional data or a function that does not exist is called. In case the fallback function does not exist and ether is sent to the contract, it will throw an exception.