Browse Source

update balance syntax for solidity 0.4.23 (#940)

Yong 7 years ago
parent
commit
5ab9024b6a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/ownership/HasNoEther.sol

+ 1 - 1
contracts/ownership/HasNoEther.sol

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