Let's say you call a function at another contract in Solidity:
contractB.doFunction()
It would then match it using the function signature to run the function in contractB. If there's not match, it would run the fallback function.
But if neither exists? What happens? Does it throw an error, or would you just expend the cost of the CALL?
receive() ex..{for A and through B , I am calling function in A which doesn't exist. The txn simply reverts and no ether is sent to the A contract. I checked this with from a function in A which returnsaddress(this).balance– 0xAnon Aug 30 '22 at 11:22