diff options
author | chriseth <chris@ethereum.org> | 2017-09-15 00:44:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 00:44:03 +0800 |
commit | 934b0d2f0daf0a45fb686ec5073dbd288d27f769 (patch) | |
tree | 8f18501d9ecbc97af0fc86df0cb2dd7027144ad8 /std/mortal.sol | |
parent | 1c85ba10e13879f680579031234c911099433596 (diff) | |
parent | 67f96652f5701b581efcda8585ab5e765aa68344 (diff) | |
download | dexon-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.sol | 2 |
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); } |