aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorNetX <nbt87x@gmail.com>2018-04-06 05:56:01 +0800
committernetrunnerX <nbt87x@gmail.com>2018-04-09 22:57:38 +0800
commit089c295641bb640608b0dda5e62bf2ba574391c6 (patch)
tree343e60aea85b649207b2996dce0104b8a202b2d8 /docs/solidity-by-example.rst
parent309a90bb5da06a5f54cd976b7da647e3bfece2e3 (diff)
downloaddexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar.gz
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar.bz2
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar.lz
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar.xz
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.tar.zst
dexon-solidity-089c295641bb640608b0dda5e62bf2ba574391c6.zip
Update solidity-by-example.rst
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 27fefd49..3636a332 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -89,11 +89,10 @@ of votes.
function giveRightToVote(address voter) public {
// If the argument of `require` evaluates to `false`,
// it terminates and reverts all changes to
- // the state and to Ether balances. It is often
- // a good idea to use this if functions are
- // called incorrectly. But watch out, this
- // will currently also consume all provided gas
- // (this is planned to change in the future).
+ // the state and to Ether balances.
+ // This consumes all gas in old EVM versions, but not anymore.
+ // It is often a good idea to use this if functions are
+ // called incorrectly.
require(
(msg.sender == chairperson) &&
!voters[voter].voted &&