aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-30 19:30:09 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-16 09:52:24 +0800
commit6c8f78fb8ff99c5d28669fa7383a25b8c8523915 (patch)
tree77c6fa1dfe65d50a55e487ed0e3732d93a7bf00b /docs/solidity-by-example.rst
parentc781baf7336af55abc33e1b63e6fc99a7e555d78 (diff)
downloaddexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.gz
dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.tar.zst
dexon-solidity-6c8f78fb8ff99c5d28669fa7383a25b8c8523915.zip
Update documentation for multi variable declaration statement.
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index f6038f7d..2b3d4b48 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -388,7 +388,7 @@ high or low invalid bids.
::
- pragma solidity ^0.4.22;
+ pragma solidity >0.4.23 <0.5.0;
contract BlindAuction {
struct Bid {
@@ -467,8 +467,8 @@ high or low invalid bids.
uint refund;
for (uint i = 0; i < length; i++) {
- var bid = bids[msg.sender][i];
- var (value, fake, secret) =
+ Bid storage bid = bids[msg.sender][i];
+ (uint value, bool fake, bytes32 secret) =
(_values[i], _fake[i], _secret[i]);
if (bid.blindedBid != keccak256(value, fake, secret)) {
// Bid was not actually revealed.