From defcf56664920104f96a4e75aedd07ba8ea42055 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Thu, 3 Nov 2016 22:58:28 -0300 Subject: [PATCH] Replace deprecated suicide with selfdestruct --- contracts/Killable.sol | 2 +- contracts/examples/StoppableBid.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }