solidity/test/libsolidity/semanticTests/various/balance.sol

14 lines
250 B
Solidity
Raw Normal View History

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