Merge pull request #58 from federicobond/selfdestruct

Replace deprecated suicide with selfdestruct
This commit is contained in:
Manuel Aráoz
2016-11-04 13:09:28 -03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

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