aboutsummaryrefslogtreecommitdiffstats
path: root/docs/units-and-global-variables.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-26 19:20:38 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-27 06:05:09 +0800
commit04582dd2cbd2d0b843a3f2f1021204a95a523a71 (patch)
tree06c2015b06a762d85c176d1e77ff2d41bdb7ad5d /docs/units-and-global-variables.rst
parent15689506c5201275c9bc079fcb5454c4f1cfbc6c (diff)
downloaddexon-solidity-04582dd2cbd2d0b843a3f2f1021204a95a523a71.tar.gz
dexon-solidity-04582dd2cbd2d0b843a3f2f1021204a95a523a71.tar.zst
dexon-solidity-04582dd2cbd2d0b843a3f2f1021204a95a523a71.zip
Mention that callcode is deprecated
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r--docs/units-and-global-variables.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 7d21f065..6ccc8407 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -70,6 +70,7 @@ Block and Transaction Properties
``msg.value`` can change for every **external** function call.
This includes calls to library functions.
+.. note::
If you want to implement access restrictions in library functions using
``msg.sender``, you have to manually supply the value of
``msg.sender`` as an argument.
@@ -157,6 +158,9 @@ For more information, see the section on :ref:`address`.
to make safe Ether transfers, always check the return value of ``send``, use ``transfer`` or even better:
Use a pattern where the recipient withdraws the money.
+.. note::
+ The use of ``callcode`` is discouraged and will be removed in the future.
+
.. index:: this, selfdestruct
Contract Related