Change killable to destructible and kill to destroy
This commit is contained in:
@ -55,6 +55,6 @@ If researchers break the contract, they can claim their reward.
|
||||
|
||||
For each researcher who wants to hack the contract and claims the reward, refer to our `Test <https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/Bounty.js/>`_ for the detail.
|
||||
|
||||
Finally, if you manage to protect your contract from security researchers, you can reclaim the bounty funds. To end the bounty, kill the contract so that all the rewards go back to the owner.::
|
||||
Finally, if you manage to protect your contract from security researchers, you can reclaim the bounty funds. To end the bounty, destroy the contract so that all the rewards go back to the owner.::
|
||||
|
||||
bounty.kill();
|
||||
bounty.destroy();
|
||||
|
||||
@ -27,7 +27,7 @@ The code is open-source, and `available on github <https://github.com/OpenZeppel
|
||||
|
||||
ownable
|
||||
Pausable
|
||||
killable
|
||||
destructible
|
||||
claimable
|
||||
migrations
|
||||
safemath
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
Killable
|
||||
Destructible
|
||||
=============================================
|
||||
|
||||
Base contract that can be killed by owner.
|
||||
Base contract that can be destroyed by owner.
|
||||
|
||||
Inherits from contract Ownable.
|
||||
|
||||
kill( ) onlyOwner
|
||||
destroy( ) onlyOwner
|
||||
"""""""""""""""""""
|
||||
|
||||
Destroys the contract and sends funds back to the owner.
|
||||
Reference in New Issue
Block a user