mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Documentation.
This commit is contained in:
committed by
Alex Beregszaszi
parent
237788c0bc
commit
17493e64ed
@@ -428,8 +428,8 @@ high or low invalid bids.
|
||||
revealEnd = biddingEnd + _revealTime;
|
||||
}
|
||||
|
||||
/// Place a blinded bid with `_blindedBid` = keccak256(value,
|
||||
/// fake, secret).
|
||||
/// Place a blinded bid with `_blindedBid` =
|
||||
/// keccak256(abi.encodePacked(value, fake, secret)).
|
||||
/// The sent ether is only refunded if the bid is correctly
|
||||
/// revealed in the revealing phase. The bid is valid if the
|
||||
/// ether sent together with the bid is at least "value" and
|
||||
@@ -470,7 +470,7 @@ high or low invalid bids.
|
||||
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)) {
|
||||
if (bid.blindedBid != keccak256(abi.encodePacked(value, fake, secret))) {
|
||||
// Bid was not actually revealed.
|
||||
// Do not refund deposit.
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user