Replace deprecated suicide with selfdestruct

This commit is contained in:
Federico Bond
2016-11-03 22:58:28 -03:00
parent 75485ca346
commit defcf56664
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
} }

View File

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