Replace deprecated suicide with selfdestruct

pull/58/head
Federico Bond 8 years ago
parent 75485ca346
commit defcf56664
  1. 2
      contracts/Killable.sol
  2. 2
      contracts/examples/StoppableBid.sol

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

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

Loading…
Cancel
Save