aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-06 22:39:54 +0800
committerGitHub <noreply@github.com>2018-04-06 22:39:54 +0800
commit12ba3ee082c13414cdb2aefb794b94e5c137de1e (patch)
tree9fc119be16c25614e5ff8add295f282c7b9e07d7
parent866df15daa21ff55ebd7084976a32cd698fcdb9e (diff)
parent49567b3f4c216b3345cd5e6c2f2a9a3b27b54fb6 (diff)
downloaddexon-solidity-12ba3ee082c13414cdb2aefb794b94e5c137de1e.tar.gz
dexon-solidity-12ba3ee082c13414cdb2aefb794b94e5c137de1e.tar.zst
dexon-solidity-12ba3ee082c13414cdb2aefb794b94e5c137de1e.zip
Merge pull request #3609 from RobbieFerguson/patch-1
Update Delegatecall Description in Docs
-rw-r--r--docs/units-and-global-variables.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 2571f20a..e7f41ed1 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -169,6 +169,13 @@ For more information, see the section on :ref:`address`.
Use a pattern where the recipient withdraws the money.
.. note::
+ If storage variables are accessed via a low-level delegatecall, the storage layout of the two contracts
+ must align in order for the called contract to correctly access the storage variables of the calling contract by name.
+ This is of course not the case if storage pointers are passed as function arguments as in the case for
+ the high-level libraries.
+
+
+.. note::
The use of ``callcode`` is discouraged and will be removed in the future.
.. index:: this, selfdestruct