While browsing the Solidity docs, I noticed this instruction available in assembly:
caller(): call sender (excluding
delegatecall
)
What do the docs mean by "excluding delegatecall
"? Is it that if contract A delegate calls to contract B, caller()
will not return the address of contract A, but instead it would return the original EOA that called A? (I know that msg.sender
is the same in this case)