aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-13 01:59:05 +0800
committerchriseth <c@ethdev.com>2016-01-13 01:59:05 +0800
commitcff368fb7c4d39b8610cec8c42b1652c42971e3e (patch)
tree9ea7b17889dcd14336b5e1b19ee56601a2852034
parentaa645d11927dce715ed3507e4b2ae89cf984a488 (diff)
parent3d66e5ad2e23e87ed80a67a5035afbcbd69a784f (diff)
downloaddexon-solidity-cff368fb7c4d39b8610cec8c42b1652c42971e3e.tar.gz
dexon-solidity-cff368fb7c4d39b8610cec8c42b1652c42971e3e.tar.zst
dexon-solidity-cff368fb7c4d39b8610cec8c42b1652c42971e3e.zip
Merge pull request #350 from ethereum/chriseth-patch-1
Docs: Refund actual deposit, and not bid value.
-rw-r--r--docs/solidity-by-example.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index de6e8165..63c82798 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -396,7 +396,7 @@ high or low invalid bids.
// Bid was not actually revealed.
// Do not refund deposit.
continue;
- refund += value;
+ refund += bid.deposit;
if (!fake && bid.deposit >= value)
if (placeBid(msg.sender, value))
refund -= value;