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

14 lines
244 B
Solidity

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