Merge pull request #1638 from willnwhite/patch-1

Other contracts can't write to a public variable
This commit is contained in:
Alex Beregszaszi authored and GitHub committed 2017-02-02 20:05:26 +00:00
commit bea59b0ca7
1 file changed
+1 -2
+1 -2
View File
@@ -109,8 +109,7 @@ that does not allow any arithmetic operations. It is suitable for
storing addresses of contracts or keypairs belonging to external
persons. The keyword ``public`` automatically generates a function that
allows you to access the current value of the state variable.
Without this keyword, other contracts have no way to access the variable
and only the code of this contract can write to it.
Without this keyword, other contracts have no way to access the variable.
The function will look something like this::
function minter() returns (address) { return minter; }