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

14 lines
250 B
Solidity

contract test {
constructor() public payable {}
function getBalance() public returns (uint256 balance) {
return address(this).balance;
}
}
// ====
// compileViaYul: also
// ----
// constructor(), 23 wei ->
// getBalance() -> 23