The function selector are the first four bytes of the keccak256 hash of the function signature. What is the signature of the fallback function? It neither has a name nor any inputs.
If there is no real signature there have to be at least a custom function selector (some fixed 4 bytes reserved for the fallback function).


There is no selector. The fallback function is called if the contract does not recognise the selector, or if no selector is provided.

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.