2019-05-02 19:17:06 +00:00
|
|
|
contract C {
|
|
|
|
function test() public view returns (bool) {
|
|
|
|
address x;
|
|
|
|
assembly { x := caller() }
|
|
|
|
return x == msg.sender;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2019-05-02 19:17:06 +00:00
|
|
|
// ----
|
|
|
|
// test() -> true
|