aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-03-16 19:08:21 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-03-16 20:37:18 +0800
commit17443f458a311def7131dcaef00195dff3778da1 (patch)
tree9a0ada9ab2a17f604c35bb02535c55c347f6104c /docs/control-structures.rst
parent6ece0d6c2f689de2dc82a31cea8625f168346b44 (diff)
downloaddexon-solidity-17443f458a311def7131dcaef00195dff3778da1.tar.gz
dexon-solidity-17443f458a311def7131dcaef00195dff3778da1.tar.zst
dexon-solidity-17443f458a311def7131dcaef00195dff3778da1.zip
Explain that .value() is only available if contract function is marked payable
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index b1e16644..a2d34274 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -127,8 +127,8 @@ the gas can be specified with special options ``.value()`` and ``.gas()``, respe
function callFeed() { feed.info.value(10).gas(800)(); }
}
-The modifier ``payable`` has to be used for ``info``, because otherwise,
-we would not be able to send Ether to it in the call ``feed.info.value(10).gas(800)()``.
+The modifier ``payable`` has to be used for ``info``, because otherwise, the `.value()`
+option would not be available.
Note that the expression ``InfoFeed(addr)`` performs an explicit type conversion stating
that "we know that the type of the contract at the given address is ``InfoFeed``" and