mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
355 B
Solidity
16 lines
355 B
Solidity
|
library Lib { function m() public returns (address) { return msg.sender; } }
|
||
|
contract Test {
|
||
|
address public sender;
|
||
|
function f() public {
|
||
|
sender = Lib.m();
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// compileToEwasm: false
|
||
|
// EVMVersion: >=homestead
|
||
|
// ----
|
||
|
// library: Lib
|
||
|
// f() ->
|
||
|
// sender() -> 0x1212121212121212121212121212120000000012
|