August 2018
Intermediate to advanced
404 pages
11h 19m
English
Each contract can have one unnamed function called the fallback function. It is executed if no other function matches the given signature or plain Ether is sent to the contract:
function() { // fallback function}
function() payable { // fallback function which can receive Ether}
A contract without a payable fallback function can still receive Ether as a result of self-destruct or mining. Such Ether transfers cannot be rejected by a contract and it is not recommended to use the contract ...