diff --git a/contracts/Killable.sol b/contracts/Killable.sol index 28e5d9e98..c5f0a3641 100644 --- a/contracts/Killable.sol +++ b/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); } } diff --git a/contracts/examples/StoppableBid.sol b/contracts/examples/StoppableBid.sol index 08f278e5e..fb61905a0 100644 --- a/contracts/examples/StoppableBid.sol +++ b/contracts/examples/StoppableBid.sol @@ -18,7 +18,7 @@ contract StoppableBid is Stoppable, PullPayment { } function withdraw() onlyInEmergency { - suicide(owner); + selfdestruct(owner); } }