From 56b65cf846c742f1665a8f4ff83b8039fef0709e Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Mon, 17 Jul 2017 19:58:41 +1000 Subject: 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` --- docs/solidity-by-example.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index 450b0286..e1fd4914 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -362,8 +362,8 @@ together with the bid. Since value transfers cannot be blinded in Ethereum, anyone can see the value. The following contract solves this problem by -accepting any value that is at least as large as -the bid. Since this can of course only be checked during +accepting any value that is larger than the highest +bid. Since this can of course only be checked during the reveal phase, some bids might be **invalid**, and this is on purpose (it even provides an explicit flag to place invalid bids with high value transfers): -- cgit v1.2.3