aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-25 22:19:52 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-31 01:18:28 +0800
commitbc3e17192f43f746bfa68ffac55f3e888195a4e1 (patch)
tree6f9952eff816d1c56ca07c3b4a7268584a3e84a0
parent91459ffc76f2c0e7e42e967b9b6278ddbe37166e (diff)
downloaddexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar.gz
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar.bz2
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar.lz
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar.xz
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.tar.zst
dexon-solidity-bc3e17192f43f746bfa68ffac55f3e888195a4e1.zip
Made it apparent that block.blockhash is function
-rw-r--r--docs/miscellaneous.rst2
-rw-r--r--docs/units-and-global-variables.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 6b327c56..787ff23a 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -162,7 +162,7 @@ Global Variables
- ``block.difficulty`` (``uint``): current block difficulty
- ``block.gaslimit`` (``uint``): current block gaslimit
- ``block.number`` (``uint``): current block number
-- ``block.blockhash`` (``function(uint) returns (bytes32)``): hash of the given block - only works for 256 most recent blocks
+- ``block.blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent blocks
- ``block.timestamp`` (``uint``): current block timestamp
- ``msg.data`` (``bytes``): complete calldata
- ``msg.gas`` (``uint``): remaining gas
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index dd9f4a6f..05b55cc9 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -54,7 +54,7 @@ Block and Transaction Properties
- ``block.difficulty`` (``uint``): current block difficulty
- ``block.gaslimit`` (``uint``): current block gaslimit
- ``block.number`` (``uint``): current block number
- - ``block.blockhash`` (``function(uint) returns (bytes32)``): hash of the given block - only for 256 most recent blocks
+ - ``block.blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent blocks
- ``block.timestamp`` (``uint``): current block timestamp
- ``msg.data`` (``bytes``): complete calldata
- ``msg.gas`` (``uint``): remaining gas