solidity/test/libsolidity/semanticTests/various/senders_balance.sol
2020-03-19 14:42:25 +01:00

21 lines
306 B
Solidity

contract C {
function f() public view returns (uint256) {
return msg.sender.balance;
}
}
contract D {
C c = new C();
constructor() public payable {}
function f() public view returns (uint256) {
return c.f();
}
}
// ----
// constructor(), 27 wei ->
// f() -> 27