solidity/test/libsolidity/semanticTests/libraries/library_call_in_homestead.sol
2022-05-19 20:23:28 +02:00

15 lines
332 B
Solidity

library Lib { function m() public returns (address) { return msg.sender; } }
contract Test {
address public sender;
function f() public {
sender = Lib.m();
}
}
// ====
// compileToEwasm: false
// EVMVersion: >=homestead
// ----
// library: Lib
// f() ->
// sender() -> 0x1212121212121212121212121212120000000012