From 3d66e5ad2e23e87ed80a67a5035afbcbd69a784f Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 12 Jan 2016 00:47:23 +0100 Subject: Refund actual deposit, and not bid value. Thanks to @jonasnick for finding this. Fixes #349 --- docs/solidity-by-example.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit