diff options
author | chriseth <c@ethdev.com> | 2016-01-12 07:47:23 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-01-12 07:47:23 +0800 |
commit | 3d66e5ad2e23e87ed80a67a5035afbcbd69a784f (patch) | |
tree | 9ea7b17889dcd14336b5e1b19ee56601a2852034 /docs | |
parent | aa645d11927dce715ed3507e4b2ae89cf984a488 (diff) | |
download | dexon-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.rst | 2 |
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; |