aboutsummaryrefslogtreecommitdiffstats
path: root/std/mortal.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-15 00:44:03 +0800
committerGitHub <noreply@github.com>2017-09-15 00:44:03 +0800
commit934b0d2f0daf0a45fb686ec5073dbd288d27f769 (patch)
tree8f18501d9ecbc97af0fc86df0cb2dd7027144ad8 /std/mortal.sol
parent1c85ba10e13879f680579031234c911099433596 (diff)
parent67f96652f5701b581efcda8585ab5e765aa68344 (diff)
downloaddexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar.gz
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar.bz2
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar.lz
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar.xz
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.tar.zst
dexon-solidity-934b0d2f0daf0a45fb686ec5073dbd288d27f769.zip
Merge pull request #2749 from ethereum/require-visibility
Warn if no visibility is specified on contract functions.
Diffstat (limited to 'std/mortal.sol')
-rw-r--r--std/mortal.sol2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/mortal.sol b/std/mortal.sol
index f0a6f4ce..c43f1e4f 100644
--- a/std/mortal.sol
+++ b/std/mortal.sol
@@ -3,7 +3,7 @@ pragma solidity ^0.4.0;
import "./owned.sol";
contract mortal is owned {
- function kill() {
+ function kill() public {
if (msg.sender == owner)
selfdestruct(owner);
}