Can somebody please guide me which 'if statement' would result in invoking the fallback function?

if (msg.sender.call.value(balance)()) {
totalBountyAmount -= balance;
if (msg.sender.call.value()()) {
totalBountyAmount -= balance;

In my opinion both of them can invoke fallback function. Somebody please guide me.


  • 1
    If msg.sender is an smart contract then you will be invoking the fallback of that contract in both cases. – Jaime Feb 11 at 7:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.