Update documentation for multi variable declaration statement.

This commit is contained in:
chriseth
2018-05-16 03:52:24 +02:00
committed by Alex Beregszaszi
parent c781baf733
commit 6c8f78fb8f
4 changed files with 16 additions and 15 deletions
+3 -3
View File
@@ -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.