mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6662 from ethereum/msgSender
Implement most trivial members.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
contract C {
|
||||
function test() public view returns (bool) {
|
||||
address x;
|
||||
assembly { x := caller() }
|
||||
return x == msg.sender;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: true
|
||||
// ----
|
||||
// test() -> true
|
||||
Reference in New Issue
Block a user