aboutsummaryrefslogtreecommitdiffstats
path: root/docs/units-and-global-variables.rst
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-07-05 20:32:32 +0800
committerLeonardo Alt <leo@ethereum.org>2018-07-12 18:53:49 +0800
commit3ebfcae8292da1d9f41ff20da1866c424404ee58 (patch)
tree0b6845c1598d81ed72ebe2b2d44272f6f51f284c /docs/units-and-global-variables.rst
parentc438b73f689b904152f4b8b636579317fb55e60a (diff)
downloaddexon-solidity-3ebfcae8292da1d9f41ff20da1866c424404ee58.tar.gz
dexon-solidity-3ebfcae8292da1d9f41ff20da1866c424404ee58.tar.zst
dexon-solidity-3ebfcae8292da1d9f41ff20da1866c424404ee58.zip
Update external tests and docs
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 61ae51a8..b24b8b71 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -181,6 +181,10 @@ For more information, see the section on :ref:`address`.
Use a pattern where the recipient withdraws the money.
.. note::
+ Prior to version 0.5.0, Solidity allowed address members to be accessed by a contract instance, for example ``this.balance``.
+ This is now forbidden and an explicit conversion to address must be done: ``address(this).balance``.
+
+.. 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