mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update solidity-by-example.rst. Fixes accepted bids
Only accept bid values higher than highest bid. Since returns early from `placeBid` function if `value <= highestBid`
This commit is contained in:
parent
b61f744dd9
commit
56b65cf846
@ -362,8 +362,8 @@ together with the bid. Since value transfers cannot
|
|||||||
be blinded in Ethereum, anyone can see the value.
|
be blinded in Ethereum, anyone can see the value.
|
||||||
|
|
||||||
The following contract solves this problem by
|
The following contract solves this problem by
|
||||||
accepting any value that is at least as large as
|
accepting any value that is larger than the highest
|
||||||
the bid. Since this can of course only be checked during
|
bid. Since this can of course only be checked during
|
||||||
the reveal phase, some bids might be **invalid**, and
|
the reveal phase, some bids might be **invalid**, and
|
||||||
this is on purpose (it even provides an explicit
|
this is on purpose (it even provides an explicit
|
||||||
flag to place invalid bids with high value transfers):
|
flag to place invalid bids with high value transfers):
|
||||||
|
Loading…
Reference in New Issue
Block a user