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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.