Browse Source

Merge pull request #58 from federicobond/selfdestruct

Replace deprecated suicide with selfdestruct
Manuel Aráoz 9 years ago
parent
commit
0c0eb292ad
2 changed files with 2 additions and 2 deletions
  1. 1 1
      contracts/Killable.sol
  2. 1 1
      contracts/examples/StoppableBid.sol

+ 1 - 1
contracts/Killable.sol

@@ -7,6 +7,6 @@ import "./Ownable.sol";
  */
 contract Killable is Ownable {
   function kill() {
-    if (msg.sender == owner) suicide(owner);
+    if (msg.sender == owner) selfdestruct(owner);
   }
 }

+ 1 - 1
contracts/examples/StoppableBid.sol

@@ -18,7 +18,7 @@ contract StoppableBid is Stoppable, PullPayment {
   }
 
   function withdraw() onlyInEmergency {
-    suicide(owner);
+    selfdestruct(owner);
   }
 
 }