August 2018
Intermediate to advanced
404 pages
11h 19m
English
require(<external_contract_call>);
A place where this can be easily overlooked is while transferring Ether. If the destination address is an externally owned account, then the transfer will be successful. If it is a contract address, then the transfer will call the fallback function of that contract and execute the code written inside it.
Write a fallback function that always cancels the transaction. This ...