Replace deprecated suicide with selfdestruct
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ contract StoppableBid is Stoppable, PullPayment {
|
||||
}
|
||||
|
||||
function withdraw() onlyInEmergency {
|
||||
suicide(owner);
|
||||
selfdestruct(owner);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user