Merge pull request #3566 from mirgj/patch-1

Update solidity-by-example.rst
This commit is contained in:
chriseth 2018-02-21 21:46:59 +01:00 committed by GitHub
commit bb2a48e05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,7 +272,7 @@ activate themselves.
// money back.
require(msg.value > highestBid);
if (highestBidder != 0) {
if (highestBid != 0) {
// Sending back the money by simply using
// highestBidder.send(highestBid) is a security risk
// because it could execute an untrusted contract.