solidity/test/libsolidity/semanticTests/viaYul/msg_sender.sol
2023-05-11 10:56:55 -05:00

10 lines
182 B
Solidity

contract C {
function test() public view returns (bool) {
address x;
assembly { x := caller() }
return x == msg.sender;
}
}
// ----
// test() -> true