aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-05 23:59:33 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-05 23:59:33 +0800
commitb8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287 (patch)
treee063f5b50532af177e0832864905747479d579d4
parent29fb5fe1c93ec6a5dd474e47f999236d1a8b6f0e (diff)
downloaddexon-solidity-b8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287.tar.gz
dexon-solidity-b8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287.tar.zst
dexon-solidity-b8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287.zip
Use msg.value and gasleft() as an example in the docs.
-rw-r--r--docs/contracts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 5754b734..58e1dcdc 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -402,7 +402,7 @@ State variables can be declared as ``constant``. In this case, they have to be
assigned from an expression which is a constant at compile time. Any expression
that accesses storage, blockchain data (e.g. ``now``, ``this.balance`` or
``block.number``) or
-execution data (``msg.value``) or make calls to external contracts are disallowed. Expressions
+execution data (``msg.value`` or ``gasleft()``) or make calls to external contracts are disallowed. Expressions
that might have a side-effect on memory allocation are allowed, but those that
might have a side-effect on other memory objects are not. The built-in functions
``keccak256``, ``sha256``, ``ripemd160``, ``ecrecover``, ``addmod`` and ``mulmod``