Here is the short definition about fallback function in solidity:

Solidity fallback function does not have any arguments, has external visibility and does not return anything.

What happens if there is no fallback function and someone calls non-existing function in the smart contract? Is there security complication without a fallback function?


The call will simple fail and revert. There are no security implications as everything will be reverted.

  • May the contract not collect some ether associated with the call?
    – user938363
    Jan 16 '21 at 7:36
  • No. The whole transaction reverts. All possible Ethers are returned. Jan 16 '21 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.