diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-03-05 23:59:33 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-03-05 23:59:33 +0800 |
commit | b8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287 (patch) | |
tree | e063f5b50532af177e0832864905747479d579d4 | |
parent | 29fb5fe1c93ec6a5dd474e47f999236d1a8b6f0e (diff) | |
download | dexon-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.rst | 2 |
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`` |