Suppose there are 2 smart contracts and one human:
- The human calls a function of Contract 1.
- During processing the human's call, Contract 1 transfers some ETH to Contract 2.
- Some of Contract 2's code gets executed because of receiving the ETH from Contract 1.
During (3) when Contract 2's code is executed who will
My guess is that it will be Contract 1's address, but if someone can provide some reference that confirms this that would be much appreciated please 🙂.
This question relates to this one but I would like to confirm whether or not there is a difference in the resulting
msg.sender between calling a function of Contract 2 and the transfer of ETH triggering Contract 2's code.