aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-12 07:47:23 +0800
committerchriseth <c@ethdev.com>2016-01-12 07:47:23 +0800
commit3d66e5ad2e23e87ed80a67a5035afbcbd69a784f (patch)
tree9ea7b17889dcd14336b5e1b19ee56601a2852034 /docs
parentaa645d11927dce715ed3507e4b2ae89cf984a488 (diff)
downloaddexon-solidity-3d66e5ad2e23e87ed80a67a5035afbcbd69a784f.tar.gz
dexon-solidity-3d66e5ad2e23e87ed80a67a5035afbcbd69a784f.tar.zst
dexon-solidity-3d66e5ad2e23e87ed80a67a5035afbcbd69a784f.zip
Refund actual deposit, and not bid value.
Thanks to @jonasnick for finding this. Fixes #349
Diffstat (limited to 'docs')
-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;