mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refund actual deposit, and not bid value.
Thanks to @jonasnick for finding this. Fixes #349
This commit is contained in:
parent
aa645d1192
commit
3d66e5ad2e
@ -396,7 +396,7 @@ high or low invalid bids.
|
|||||||
// Bid was not actually revealed.
|
// Bid was not actually revealed.
|
||||||
// Do not refund deposit.
|
// Do not refund deposit.
|
||||||
continue;
|
continue;
|
||||||
refund += value;
|
refund += bid.deposit;
|
||||||
if (!fake && bid.deposit >= value)
|
if (!fake && bid.deposit >= value)
|
||||||
if (placeBid(msg.sender, value))
|
if (placeBid(msg.sender, value))
|
||||||
refund -= value;
|
refund -= value;
|
||||||
|
Loading…
Reference in New Issue
Block a user