Change naming to "destructible".

This commit is contained in:
chriseth
2020-01-08 09:17:59 +01:00
parent 70a2902714
commit 7772ee145c
4 changed files with 35 additions and 35 deletions
+3 -3
View File
@@ -39,12 +39,12 @@ if they are marked ``virtual``. For details, please see
}
}
contract retrievable is owned {
contract destructible is owned {
// This contract inherits the `onlyOwner` modifier from
// `owned` and applies it to the `close` function, which
// causes that calls to `close` only have an effect if
// they are made by the stored owner.
function close() public onlyOwner {
function destroy() public onlyOwner {
selfdestruct(owner);
}
}
@@ -58,7 +58,7 @@ if they are marked ``virtual``. For details, please see
}
}
contract Register is priced, owned {
contract Register is priced, destructible {
mapping (address => bool) registeredAddresses;
uint price;