aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-03 00:58:27 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-05 18:18:04 +0800
commitc633c0eacba12e940b12c6ff58b5c6c55dc0122c (patch)
tree9b54278c28df1c2fb97916c9ec7e263faea1b97d /docs/miscellaneous.rst
parent5982869e94965e48ec680fd32e6f80b8211fc34c (diff)
downloaddexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.tar.gz
dexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.tar.zst
dexon-solidity-c633c0eacba12e940b12c6ff58b5c6c55dc0122c.zip
Move msg.gas to global function gasleft(). Closes #2971.
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 70ed6201..7d3d058b 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -315,8 +315,9 @@ Global Variables
- ``block.gaslimit`` (``uint``): current block gaslimit
- ``block.number`` (``uint``): current block number
- ``block.timestamp`` (``uint``): current block timestamp
+- ``gasleft() returns (uint256)``: remaining gas
- ``msg.data`` (``bytes``): complete calldata
-- ``msg.gas`` (``uint``): remaining gas
+- ``msg.gas`` (``uint``): remaining gas - deprecated in version 0.4.21 and to be replaced by ``gasleft()``
- ``msg.sender`` (``address``): sender of the message (current call)
- ``msg.value`` (``uint``): number of wei sent with the message
- ``now`` (``uint``): current block timestamp (alias for ``block.timestamp``)