update balance syntax for solidity 0.4.23 (#940)

This commit is contained in:
Yong
2018-05-31 07:10:08 +08:00
committed by Matt Condon
parent d5f06ab32f
commit 5ab9024b6a

View File

@ -36,6 +36,6 @@ contract HasNoEther is Ownable {
* @dev Transfer all Ether held by the contract to the owner.
*/
function reclaimEther() external onlyOwner {
owner.transfer(this.balance);
owner.transfer(address(this).balance);
}
}